mirror of
https://github.com/apple/pkl.git
synced 2026-05-28 17:49:15 +02:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user