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

   This PR extended `FastDateFormat` to support a strict (lenient) mode, 
following the same pattern as `SimpleDateFormat`: 
   Thanks @ppkarwasz  for the direction. 
   
   - Added methods: `isLenient`, `setLenient` and `reset`. 
   - Throws an exception for invalid input data and lenient is false. 
   - Added tests for new scenarios and confirmed all existing and new test 
cases pass with `mvn`. 
   
   `reset()` method resets the object's state because the instance is cached 
and reused. 
   
   There is support for serialization and deserialization of the 
`FastDateParser`. 
   However, retaining the lenient value after serialization is not added. It 
currently resets to the default value. 
   This helps avoid unintentional exceptions when lenient is set to false. 
Users can explicitly set the value if needed.


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