This commit is contained in:
@@ -117,8 +117,7 @@ public final class ClassFilter<T> {
|
|||||||
if (cf.conf != null) {
|
if (cf.conf != null) {
|
||||||
if (property == null) {
|
if (property == null) {
|
||||||
property = cf.conf;
|
property = cf.conf;
|
||||||
} else {
|
} else if (property instanceof DefaultAnyValue) {
|
||||||
if (property instanceof DefaultAnyValue) {
|
|
||||||
((DefaultAnyValue) property).addAll(cf.conf);
|
((DefaultAnyValue) property).addAll(cf.conf);
|
||||||
} else {
|
} else {
|
||||||
DefaultAnyValue dav = new DefaultAnyValue();
|
DefaultAnyValue dav = new DefaultAnyValue();
|
||||||
@@ -127,7 +126,6 @@ public final class ClassFilter<T> {
|
|||||||
property = dav;
|
property = dav;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
entrys.add(new FilterEntry(clazz, autoscan, property));
|
entrys.add(new FilterEntry(clazz, autoscan, property));
|
||||||
} catch (Throwable cfe) {
|
} catch (Throwable cfe) {
|
||||||
}
|
}
|
||||||
@@ -349,7 +347,9 @@ public final class ClassFilter<T> {
|
|||||||
urlfiles.add(url);
|
urlfiles.add(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
String selfpkg0 = ClassFilter.class.getPackage().getName();
|
||||||
|
selfpkg0 = selfpkg0.substring(0, selfpkg0.lastIndexOf('.') + 1);
|
||||||
|
final String selfpkg = selfpkg0;
|
||||||
List<File> files = new ArrayList<>();
|
List<File> files = new ArrayList<>();
|
||||||
boolean debug = logger.isLoggable(Level.FINEST);
|
boolean debug = logger.isLoggable(Level.FINEST);
|
||||||
StringBuilder debugstr = new StringBuilder();
|
StringBuilder debugstr = new StringBuilder();
|
||||||
@@ -370,7 +370,7 @@ public final class ClassFilter<T> {
|
|||||||
String entryname = it.nextElement().getName().replace('/', '.');
|
String entryname = it.nextElement().getName().replace('/', '.');
|
||||||
if (entryname.endsWith(".class") && entryname.indexOf('$') < 0) {
|
if (entryname.endsWith(".class") && entryname.indexOf('$') < 0) {
|
||||||
String classname = entryname.substring(0, entryname.length() - 6);
|
String classname = entryname.substring(0, entryname.length() - 6);
|
||||||
if (classname.startsWith("javax.") || classname.startsWith("com.sun.") || classname.startsWith("com.mysql.")) continue;
|
if (classname.startsWith("javax.") || classname.startsWith("com.sun.") || classname.startsWith(selfpkg) || classname.startsWith("com.mysql.")) continue;
|
||||||
classes.add(classname);
|
classes.add(classname);
|
||||||
if (debug) debugstr.append(classname).append("\r\n");
|
if (debug) debugstr.append(classname).append("\r\n");
|
||||||
for (final ClassFilter filter : filters) {
|
for (final ClassFilter filter : filters) {
|
||||||
|
|||||||
Reference in New Issue
Block a user