[
https://issues.apache.org/jira/browse/LANG-1662?focusedWorklogId=755636&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-755636
]
ASF GitHub Bot logged work on LANG-1662:
----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Apr/22 08:20
Start Date: 12/Apr/22 08:20
Worklog Time Spent: 10m
Work Description: kinow commented on code in PR #849:
URL: https://github.com/apache/commons-lang/pull/849#discussion_r848110734
##########
src/main/java/org/apache/commons/lang3/builder/ReflectionToStringBuilder.java:
##########
@@ -460,6 +490,11 @@ private static Object checkNotNull(final Object obj) {
*/
protected String[] excludeFieldNames;
+ /**
+ * Field names that will be include in the output. All fields are included
by default.
Review Comment:
s/will be include/will be included
Issue Time Tracking
-------------------
Worklog Id: (was: 755636)
Remaining Estimate: 4h (was: 4h 10m)
Time Spent: 2h (was: 1h 50m)
> Create methods on ReflectionToStringBuilder to reflect only select fields
> -------------------------------------------------------------------------
>
> Key: LANG-1662
> URL: https://issues.apache.org/jira/browse/LANG-1662
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.builder.*
> Reporter: Daniel Augusto Veronezi Salvador
> Priority: Minor
> Original Estimate: 6h
> Time Spent: 2h
> Remaining Estimate: 4h
>
> *ReflectionToStringBuilder* has methods to exclude fields from *toString*; If
> we have an object with several fields and want to reflect only a fews, we
> have to list all the fields that we don't want to reflect and pass to
> *excludeFieldNames*.
> Would be valid implement a way to pass the fields that we want and reflect
> only the selected fields?
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)