1
0
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:
chylex 2016-01-08 09:28:22 +01:00
parent b90c77e0ee
commit 2a7ef5a233

View File

@ -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();
}