Skip to content

Commit e762629

Browse files
committed
oops one more sonarcube issue lol
1 parent 7fc41a6 commit e762629

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/json/JSONObject.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,8 +1853,7 @@ private void processMethod(Object bean, Set<Object> objectsRecord, JSONParserCon
18531853
private static Method[] getMethods(Class<?> klass) {
18541854
boolean includeSuperClass = klass.getClassLoader() != null;
18551855

1856-
Method[] methods = includeSuperClass ? klass.getMethods() : klass.getDeclaredMethods();
1857-
return methods;
1856+
return includeSuperClass ? klass.getMethods() : klass.getDeclaredMethods();
18581857
}
18591858

18601859
private static boolean isValidMethodName(String name) {

0 commit comments

Comments
 (0)