efegokdemir opened a new pull request, #389:
URL: https://github.com/apache/maven-filtering/pull/389

   ## Summary
   
   `MultiDelimiterInterpolatorFilterReaderLineEnding` recreated a 
`BoundedReader` for every character read, repeatedly allocating a wrapper and 
resetting the underlying reader mark. Reuse one bounded reader while resetting 
its read window for each logical read.
   
   Fixes #353
   
   ## Changes
   
   - Reuse the bounded reader instance across reads.
   - Reset its position whenever a new mark window is established.
   - Add regression coverage for starting a new bounded read window after prior 
reads.
   
   ## Testing
   
   - `mvn -Dspotless.skip=true test` — passed (76 tests)
   - `mvn -Dspotless.skip=true verify` — passed
   - `git diff --check` — passed
   
   ## Notes
   
   The change preserves the existing mark/reset behavior while avoiding 
per-character `BoundedReader` allocations.
   


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