import java.lang.annotation.ElementType;
import java.util.EnumSet;
-
+import java.util.Locale;
public class Main {
static class Arguments {
/**
- * from --annotation, dot-seperated classname
+ * from --annotation, dot-separated classname
* of annotation to look for
*/
String aclass;
try {
for (String p : argParam.split(",")) {
- eTypes.add(ElementType.valueOf(p.toUpperCase()));
+ eTypes.add(ElementType.valueOf(p.toUpperCase(Locale.ROOT)));
}
} catch (IllegalArgumentException ex) {
throw new InvalidArgumentException(
try {
for (String p : argParam.split(",")) {
- printTypes.add(PrintType.valueOf(p.toUpperCase()));
+ printTypes.add(PrintType.valueOf(p.toUpperCase(Locale.ROOT)));
}
} catch (IllegalArgumentException ex) {
throw new InvalidArgumentException("invalid --print");