removed duplicate code

This commit is contained in:
nathan 2014-10-02 02:27:51 +02:00
parent 9b1ee07cf8
commit 844092f161
1 changed files with 1 additions and 3 deletions

View File

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