Commit e7acd28
committed
Simplify InputStream to String conversion using Java 11+ API
Replace manual BufferedReader-based InputStream to String conversion with
Java 11+ InputStream.readAllBytes() as suggested by the TODO comment.
This change:
- Removes the TODO asking for Guava replacement
- Uses standard Java 11+ API instead of external dependency
- Reduces code complexity from 15 lines to 8 lines
- Removes unused BufferedReader and InputStreamReader imports1 parent e294ce8 commit e7acd28
File tree
1 file changed
+4
-13
lines changed- fineract-provider/src/main/java/org/apache/fineract/template/service
1 file changed
+4
-13
lines changedLines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
| 56 | + | |
59 | 57 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 58 | + | |
| 59 | + | |
68 | 60 | | |
69 | 61 | | |
| 62 | + | |
70 | 63 | | |
71 | | - | |
72 | | - | |
73 | 64 | | |
74 | 65 | | |
75 | 66 | | |
| |||
0 commit comments