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=true
|
||||||
annotation.processing.enabled.in.editor=false
|
annotation.processing.enabled.in.editor=false
|
||||||
annotation.processing.processors.list=
|
annotation.processing.processors.list=
|
||||||
|
@ -189,15 +189,10 @@ public class SeSimClassLoader<T> {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param additional_pathlist
|
* @param additional_pathlist
|
||||||
* @param iface
|
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public ArrayList<Class<T>> getInstalledClasses(ArrayList<String> additional_pathlist){
|
public ArrayList<Class<T>> getInstalledClasses(ArrayList<String> additional_pathlist){
|
||||||
|
|
||||||
if (cache != null) {
|
|
||||||
return cache;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
ArrayList<Class<T>> result = new ArrayList<>();
|
ArrayList<Class<T>> result = new ArrayList<>();
|
||||||
ArrayList<String> pathlist = new ArrayList<>();
|
ArrayList<String> pathlist = new ArrayList<>();
|
||||||
@ -285,16 +280,8 @@ public class SeSimClassLoader<T> {
|
|||||||
return cache;
|
return cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
Class<?> tube;
|
cache = getInstalledClasses(new ArrayList());
|
||||||
|
|
||||||
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;
|
return cache;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user