Fix calls to string case api (#1620)

* Enable IntelliJ inspection for calls to `String.toLowerCase()` and
`String.toUpperCase()`
* Enable error prone check
* Fix all issues
This commit is contained in:
Daniel Chao
2026-05-26 11:20:02 -07:00
committed by GitHub
parent d6f35dd49e
commit 72948e50fe
10 changed files with 22 additions and 11 deletions
@@ -15,6 +15,8 @@
*/
package org.pkl.parser;
import java.util.Locale;
public enum Token {
ABSTRACT,
AMENDS,
@@ -233,6 +235,6 @@ public enum Token {
if (this == UNDERSCORE) {
return "_";
}
return name().toLowerCase();
return name().toLowerCase(Locale.ROOT);
}
}