shashankrnr32 opened a new pull request, #1082:
URL: https://github.com/apache/commons-lang/pull/1082

   **Note: Please feel free to close this PR if this was previously discussed 
before and was decided not to be added to this implementation.**
   
   Currently, `ReflectiveToStringBuilder` allows users to exclude fields from 
the `toString` output by adding an annotation `@ToStringExclude` to the field 
but there is no support to include methods declared in the class to be included 
in the `toString` output. 
   
   This PR introduces a new annotation `@ToStringInclude(String)` that can be 
added to the methods of a class with which, the methods in the toString output.
   
   Some of the points which can be considered
   1. Add this implementation to a completely different class instead of 
modifying the current implementation
   2. Wrap this inside a flag, say `allowReflectingMethods` before going into 
this added implementation.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to