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

   ## Overview
   Addresses LANG-1452 by excluding `BigDecimal` and `BigInteger` from 
recursive formatting in `MultilineRecursiveToStringStyle` to prevent exposing 
internal implementation fields.
   
   ## Changes
   - Override `accept(Class<?>)` method to return `false` for `BigDecimal` and 
`BigInteger`
   - Add `BigInteger` import
   - Update Javadoc to document the exclusion
   - Add `testBigDecimalField()` test case
   - Add `testBigIntegerField()` test case
   
   ## Why
   `MultilineRecursiveToStringStyle` was recursively formatting `BigDecimal` 
and `BigInteger` objects, exposing internal fields like `intVal`, `scale`, 
`mag`, and `signum` instead of their string values. This follows the intended 
design pattern of `RecursiveToStringStyle`, where subclasses can override 
`accept()` to filter specific classes from recursive processing.


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