mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
oops one more sonarcube issue lol
This commit is contained in:
parent
7fc41a6c0e
commit
e762629bcc
@ -1853,8 +1853,7 @@ public class JSONObject {
|
|||||||
private static Method[] getMethods(Class<?> klass) {
|
private static Method[] getMethods(Class<?> klass) {
|
||||||
boolean includeSuperClass = klass.getClassLoader() != null;
|
boolean includeSuperClass = klass.getClassLoader() != null;
|
||||||
|
|
||||||
Method[] methods = includeSuperClass ? klass.getMethods() : klass.getDeclaredMethods();
|
return includeSuperClass ? klass.getMethods() : klass.getDeclaredMethods();
|
||||||
return methods;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidMethodName(String name) {
|
private static boolean isValidMethodName(String name) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user