mirror of
https://github.com/chylex/Java-Checker.git
synced 2025-06-11 04:34:03 +02:00
Fix incorrect exception catching for missing methods in reflection
This commit is contained in:
parent
b90c77e0ee
commit
2a7ef5a233
@ -105,7 +105,7 @@ public final class JavaCheckerReporter{
|
||||
private static List getListOrNullSafe(Class cls, String methodName){
|
||||
try{
|
||||
return (List)cls.getMethod(methodName).invoke(null);
|
||||
}catch(NoSuchMethodError e){
|
||||
}catch(NoSuchMethodException e){
|
||||
}catch(Throwable t){
|
||||
t.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user