Akshat-coder2106 opened a new pull request, #1547:
URL: https://github.com/apache/commons-lang/pull/1547

   ### Summary
   This PR addresses **LANG-1725** by updating the `Conversion` class to throw 
`IllegalArgumentException` instead of `IndexOutOfBoundsException` when a 
provided index is out of bounds.
   
   ### Changes
   * **Conversion.java**: Updated `binaryBeMsb0ToHexDigit(boolean[], int)` to 
throw `IllegalArgumentException`. The original `IndexOutOfBoundsException` is 
now wrapped as the cause to preserve the technical stack trace.
   * **ConversionTest.java**: Updated the test 
`binaryBeMsb0ToHexDigitPosOutsideArray` to expect `IllegalArgumentException`.
   * **Javadoc**: Updated method documentation to reflect the change in 
exception type.
   
   ### Quality Check
   * **Zero Formatting Noise**: I have disabled "Format on Save" and "Optimize 
Imports" to ensure the diff only contains the necessary logic changes. No 
unrelated lines or white-spaces have been modified.
   * **Trailing Newlines**: Verified that all modified files end with a single 
empty line.
   * **Tests**: Ran `mvn test -Dtest=ConversionTest` and achieved **BUILD 
SUCCESS**.


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