adamsaghy commented on code in PR #5595:
URL: https://github.com/apache/fineract/pull/5595#discussion_r2940255639
##########
fineract-validation/src/main/java/org/apache/fineract/validation/constraints/EnumValueValidator.java:
##########
@@ -30,12 +30,12 @@ public class EnumValueValidator implements
ConstraintValidator<EnumValue, String
@Override
public void initialize(EnumValue annotation) {
- acceptedValues =
Arrays.stream(annotation.enumClass().getEnumConstants()).map(e ->
e.name().toLowerCase())
+ acceptedValues =
Arrays.stream(annotation.enumClass().getEnumConstants()).map(e ->
e.name().toLowerCase(java.util.Locale.ROOT))
Review Comment:
Can you please make sure to check whether this is an issue with other
classes? I think you can extend this story and cover all "missing" locale
compilation warning in one shot. What do you think?
--
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]