Skip to content

Commit

Permalink
Fix the "Error Prone: Specify a Locale when calling String#to{Lower,U…
Browse files Browse the repository at this point in the history
…pper}Case" warning in Resolver.

PiperOrigin-RevId: 703499448
Change-Id: I683e74db4602666ba93aba4433d31d0399056fd4
  • Loading branch information
pzembrod authored and copybara-github committed Dec 6, 2024
1 parent 2e58ac0 commit 93e76f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/starlark/java/syntax/Resolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

package net.starlark.java.syntax;

import com.google.common.base.Ascii;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
Expand Down Expand Up @@ -68,7 +69,7 @@ public enum Scope {

@Override
public String toString() {
return super.toString().toLowerCase();
return Ascii.toLowerCase(super.toString());
}
}

Expand Down

0 comments on commit 93e76f2

Please sign in to comment.