diff options
Diffstat (limited to 'src/org/traccar/helper/Clazz.java')
-rw-r--r-- | src/org/traccar/helper/Clazz.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/org/traccar/helper/Clazz.java b/src/org/traccar/helper/Clazz.java index ba4c4fded..1a1b445d5 100644 --- a/src/org/traccar/helper/Clazz.java +++ b/src/org/traccar/helper/Clazz.java @@ -23,19 +23,6 @@ import java.lang.reflect.Type; public final class Clazz implements Serializable { - private static final long serialVersionUID = 4983299355055144885L; - - private Clazz() { - } - - public static Class getGenericArgumentType(Class currentClass, Class genericSuperClass) { - return getGenericArgumentType(currentClass, genericSuperClass, 0); - } - - public static Class getGenericArgumentType(Class currentClass, int argumentIndex) { - return getGenericArgumentType(currentClass, null, argumentIndex); - } - public static Class getGenericArgumentType(Class currentClass) { return getGenericArgumentType(currentClass, null, 0); } @@ -72,14 +59,6 @@ public final class Clazz implements Serializable { throw new ClassCastException(); } - public static Class forName(String className) { - try { - return Class.forName(className, false, Thread.currentThread().getContextClassLoader()); - } catch (ClassNotFoundException e) { - throw new IllegalArgumentException(e); - } - } - public static <T> long getId(T entity) throws Exception { Method[] methods = entity.getClass().getMethods(); for (final Method method : methods) { |