Repository navigation
FINERACT-2421: Simplify InputStream to String conversion using Java 11+ API - #5267
Merged
galovics merged 1 commit intoDec 29, 2025
Merged
Conversation
Aman-Mittal
reviewed
Dec 27, 2025
| private final FineractProperties fineractProperties; | ||
|
|
||
| // TODO Replace this with appropriate alternative available in Guava | ||
| // Simplified using Java 11+ InputStream.readAllBytes() instead of manual buffering |
Member
There was a problem hiding this comment.
Code seems ok, and remove this comment, TODO,FIXME should be removed after fixing
Contributor
Author
There was a problem hiding this comment.
Thank you for the feedback! I've removed the comment. The code is now self-explanatory.
Aman-Mittal
approved these changes
Dec 27, 2025
Aman-Mittal
left a comment
Member
There was a problem hiding this comment.
LGTM, When the TODO is completed and code is self explanatory the comment can be removed entirely
airajena
force-pushed
the
FINERACT-2421/simplify-input-stream
branch
from
December 28, 2025 04:25
89f42c0 to
55affcf
Compare
galovics
approved these changes
Dec 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA Ticket
https://issues.apache.org/jira/browse/FINERACT-2421
Description
This PR simplifies the getStringFromInputStream() method in TemplateMergeService.java by replacing manual BufferedReader-based conversion with Java 11+
InputStream.readAllBytes().Changes
InputStream.readAllBytes()BufferedReader,InputStreamReaderWhy This Approach
Java 11+ provides native
InputStream.readAllBytes()which is:Testing
./gradlew :fineract-provider:compileJavapasses./gradlew :fineract-provider:compileTestJavapasses