mirror of
https://github.com/chylex/Java-Checker.git
synced 2025-07-24 02:59:01 +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){
|
private static List getListOrNullSafe(Class cls, String methodName){
|
||||||
try{
|
try{
|
||||||
return (List)cls.getMethod(methodName).invoke(null);
|
return (List)cls.getMethod(methodName).invoke(null);
|
||||||
}catch(NoSuchMethodError e){
|
}catch(NoSuchMethodException e){
|
||||||
}catch(Throwable t){
|
}catch(Throwable t){
|
||||||
t.printStackTrace();
|
t.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user