smiklosovic commented on code in PR #4393:
URL: https://github.com/apache/cassandra/pull/4393#discussion_r2377796479
##########
src/java/org/apache/cassandra/config/GuardrailsOptions.java:
##########
@@ -1430,6 +1473,26 @@ private static Set<String>
validateTableProperties(Set<String> properties, Strin
return lowerCaseProperties;
}
+ private static Set<String> validateKeyspaceProperties(Set<String>
properties, String name)
+ {
+ if(properties == null)
+ throw new IllegalArgumentException(format("Invalid value for %s:
null is not allowed", name));
+
+ Set<String> lowerCaseProperties =
properties.stream().map(String::toLowerCase).collect(toSet());
Review Comment:
technically, we should do
`properties.stream().map(LocalizeString::toLowerCaseLocalized)` (same for table
properties validation method). See `.build/checkstyle.xml` file and search for
"block toLowerCase and toUpperCase" comment.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]