removed duplicate code

This commit is contained in:
nathan 2014-10-02 02:27:51 +02:00
parent 9b1ee07cf8
commit 844092f161

View File

@ -745,9 +745,7 @@ public class Sys {
String classPath = name.substring(0, name.lastIndexOf('.')); String classPath = name.substring(0, name.lastIndexOf('.'));
classPath = classPath.replace('/', '.'); classPath = classPath.replace('/', '.');
String toDots = classPath.replaceAll(File.separator, "."); Class<?> clazz = Class.forName(classPath, false, classLoader);
Class<?> clazz = Class.forName(toDots, false, classLoader);
if (clazz.getAnnotation(annotation) != null) { if (clazz.getAnnotation(annotation) != null) {
annotatedClasses.add(clazz); annotatedClasses.add(clazz);
} }