a little tolerance for sloppy models
This commit is contained in:
parent
bc0309b5ba
commit
ef89dc5345
|
@ -79,9 +79,11 @@ public class ReferenceCleanser {
|
|||
ShrikeClass c = (ShrikeClass) klass;
|
||||
c.clearSoftCaches();
|
||||
} else {
|
||||
for (IMethod m : klass.getDeclaredMethods()) {
|
||||
if (m instanceof ShrikeCTMethod) {
|
||||
((ShrikeCTMethod)m).clearCaches();
|
||||
if (klass.getDeclaredMethods() != null) {
|
||||
for (IMethod m : klass.getDeclaredMethods()) {
|
||||
if (m instanceof ShrikeCTMethod) {
|
||||
((ShrikeCTMethod)m).clearCaches();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue