mirror of
https://github.com/google/nomulus
synced 2026-01-07 05:56:49 +00:00
Replace to(Upper|Lower)Case with Ascii.to$1Case
The presubmits are warning that toUpperCase() and toLowerCase() are locale-specific, and advise using Ascii.toUpperCase() and Ascii.toLowerCase() as a local-invariant alternative. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127583677
This commit is contained in:
@@ -18,6 +18,7 @@ import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
||||
|
||||
import com.beust.jcommander.Parameter;
|
||||
import com.beust.jcommander.Parameters;
|
||||
import com.google.common.base.Ascii;
|
||||
import com.google.template.soy.data.SoyMapData;
|
||||
import google.registry.model.domain.launch.LaunchPhase;
|
||||
import google.registry.tools.Command.GtechCommand;
|
||||
@@ -53,8 +54,8 @@ final class DomainApplicationInfoCommand extends EppToolCommand implements Gtech
|
||||
|
||||
@Override
|
||||
void initEppToolCommand() {
|
||||
LaunchPhase launchPhase =
|
||||
checkArgumentNotNull(LaunchPhase.fromValue(phase.toLowerCase()), "Illegal launch phase.");
|
||||
LaunchPhase launchPhase = checkArgumentNotNull(
|
||||
LaunchPhase.fromValue(Ascii.toLowerCase(phase)), "Illegal launch phase.");
|
||||
|
||||
setSoyTemplate(
|
||||
DomainApplicationInfoSoyInfo.getInstance(),
|
||||
|
||||
Reference in New Issue
Block a user