mirror of
https://github.com/chylex/Java-Checker.git
synced 2025-08-30 00:53:09 +02:00
Fix incorrect exception catching for missing methods in reflection
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user