dimas-b commented on code in PR #1663:
URL: https://github.com/apache/polaris/pull/1663#discussion_r2104800845
##########
api/iceberg-service/src/main/java/org/apache/polaris/service/types/NotificationType.java:
##########
@@ -84,9 +83,9 @@ public static Optional<NotificationType> lookupByName(String
name) {
return Optional.empty();
}
- for (NotificationType NotificationType : NotificationType.values()) {
- if (name.toUpperCase(Locale.ROOT).equals(NotificationType.name())) {
- return Optional.of(NotificationType);
+ for (NotificationType notificationType : NotificationType.values()) {
+ if (name.equalsIgnoreCase(notificationType.name())) {
Review Comment:
Is this flagged by ErrorProne or collateral?
--
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]