adamsaghy commented on code in PR #4357:
URL: https://github.com/apache/fineract/pull/4357#discussion_r1967610769
##########
fineract-core/src/main/java/org/apache/fineract/infrastructure/dataqueries/data/EntityTables.java:
##########
@@ -135,6 +134,6 @@ public static List<Integer> getCheckStatusCodes(String
name) {
@NotNull
public static List<EntityTables> getFiltered(Predicate<EntityTables>
filter) {
- return Arrays.stream(VALUES).filter(filter).toList();
+ return
List.of(Arrays.stream(ENTITY_VALUES).filter(filter).toArray(EntityTables[]::new));
Review Comment:
Same here... we dont need List.of + Arrays back and forth....
--
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]