Refactoring...
This commit is contained in:
parent
90c2fbd386
commit
b5d9c989f6
@ -1,4 +1,4 @@
|
||||
#Mon, 20 Nov 2017 23:21:04 +0100
|
||||
#Tue, 21 Nov 2017 11:54:07 +0100
|
||||
annotation.processing.enabled=true
|
||||
annotation.processing.enabled.in.editor=false
|
||||
annotation.processing.processors.list=
|
||||
|
@ -189,15 +189,10 @@ public class SeSimClassLoader<T> {
|
||||
/**
|
||||
*
|
||||
* @param additional_pathlist
|
||||
* @param iface
|
||||
* @return
|
||||
*/
|
||||
public ArrayList<Class<T>> getInstalledClasses(ArrayList<String> additional_pathlist){
|
||||
|
||||
if (cache != null) {
|
||||
return cache;
|
||||
}
|
||||
|
||||
|
||||
|
||||
ArrayList<Class<T>> result = new ArrayList<>();
|
||||
ArrayList<String> pathlist = new ArrayList<>();
|
||||
@ -284,17 +279,9 @@ public class SeSimClassLoader<T> {
|
||||
if (cache != null) {
|
||||
return cache;
|
||||
}
|
||||
|
||||
cache = getInstalledClasses(new ArrayList());
|
||||
|
||||
Class<?> tube;
|
||||
|
||||
ArrayList<Class<?>> trl;
|
||||
ArrayList<Class<T>> result = new ArrayList<>();
|
||||
trl = getInstalledClasses(new ArrayList()); //, class_type);
|
||||
for (Class<?> c : trl) {
|
||||
result.add((Class<T>) c);
|
||||
}
|
||||
|
||||
cache = result;
|
||||
return cache;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user