GutoVeronezi commented on a change in pull request #849:
URL: https://github.com/apache/commons-lang/pull/849#discussion_r789947238



##########
File path: 
src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java
##########
@@ -385,6 +385,19 @@ public static String toStringExclude(final Object object, 
final Collection<Strin
         return toStringExclude(object, toNoNullStringArray(excludeFieldNames));
     }
 
+    /**
+     * Builds a String for a toString method with only the selected field 
names.
+     *
+     * @param object
+     *            The object to "toString".
+     * @param selectedFieldNames
+     *            The field names that must be on toString. Null selects 
nothing.

Review comment:
       In case the parameter is null or empty, it will skip the validation of 
the selected fields and will return the fields as is the current behavior.




-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to