Skip to content

Commit

Permalink
Do not use Locale.ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
cachescrubber committed Jan 8, 2022
1 parent 7d11e76 commit a0d6aac
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Objects;

/**
Expand Down Expand Up @@ -91,7 +90,7 @@ enum DocumentationProvider {
}

public static DocumentationProvider ofCliOption(String optVal) {
optVal = Objects.requireNonNull(optVal).toUpperCase(Locale.ROOT);
optVal = Objects.requireNonNull(optVal).toUpperCase();
return valueOf(optVal);
}

Expand Down Expand Up @@ -121,7 +120,7 @@ public List<AnnotationLibrary> supportedAnnotationLibraries() {
}

public String toCliOptValue() {
return name().toLowerCase(Locale.ROOT);
return name().toLowerCase();
}
}

Expand All @@ -141,7 +140,7 @@ enum AnnotationLibrary {
private final String description;

public static AnnotationLibrary ofCliOption(String optVal) {
optVal = Objects.requireNonNull(optVal).toUpperCase(Locale.ROOT);
optVal = Objects.requireNonNull(optVal).toUpperCase();
return valueOf(optVal);
}

Expand All @@ -164,7 +163,7 @@ public String getDescription() {
}

public String toCliOptValue() {
return name().toLowerCase(Locale.ROOT);
return name().toLowerCase();
}
}
}

0 comments on commit a0d6aac

Please sign in to comment.