lukaszlenart commented on a change in pull request #455:
URL: https://github.com/apache/struts/pull/455#discussion_r537345825
##########
File path: plugins/json/src/main/java/org/apache/struts2/json/JSONUtil.java
##########
@@ -410,7 +411,9 @@ else if (serializationParams.getErrorCode() > 0)
public static Method[] listSMDMethods(Class clazz, boolean
ignoreInterfaces) {
final List<Method> methods = new LinkedList<>();
if (ignoreInterfaces) {
- for (Method method : clazz.getMethods()) {
+ Method[] SMDMethods = clazz.getMethods();
Review comment:
Could you use `methods` instead of `SMDMethods`?
##########
File path: plugins/json/src/main/java/org/apache/struts2/json/JSONUtil.java
##########
@@ -421,7 +424,9 @@ else if (serializationParams.getErrorCode() > 0)
// order encountered
JSONUtil.visitInterfaces(clazz, new JSONUtil.ClassVisitor() {
public boolean visit(Class aClass) {
- for (Method method : aClass.getMethods()) {
+ Method[] SMDMethods = aClass.getMethods();
Review comment:
Same here, `methods` instead of `SMDMethods`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]