diff --git a/codegen-maven-plugin/src/main/java/org/openjax/codegen/radixtree/RadixTreeEnumGeneratorMojo.java b/codegen-maven-plugin/src/main/java/org/openjax/codegen/radixtree/RadixTreeEnumGeneratorMojo.java index 4e61939..47eb39f 100644 --- a/codegen-maven-plugin/src/main/java/org/openjax/codegen/radixtree/RadixTreeEnumGeneratorMojo.java +++ b/codegen-maven-plugin/src/main/java/org/openjax/codegen/radixtree/RadixTreeEnumGeneratorMojo.java @@ -32,22 +32,22 @@ /** * Maven MOJO for {@link RadixTreeEnumGenerator}. */ -@Mojo(name="radixtree", defaultPhase=LifecyclePhase.GENERATE_SOURCES) -@Execute(goal="radixtree") +@Mojo(name = "radixtree", defaultPhase = LifecyclePhase.GENERATE_SOURCES) +@Execute(goal = "radixtree") public final class RadixTreeEnumGeneratorMojo extends AbstractMojo { - @Parameter(property="inFile", required=true) + @Parameter(property = "inFile", required = true) private File inFile; - @Parameter(property="className", required=true) + @Parameter(property = "className", required = true) private String className; - @Parameter(property="inheritsFrom") + @Parameter(property = "inheritsFrom") private String inheritsFrom; - @Parameter(property="destDir", required=true) + @Parameter(property = "destDir", required = true) private File destDir; - @Parameter(defaultValue="${project}", readonly=true, required=true) + @Parameter(defaultValue = "${project}", readonly = true, required = true) private MavenProject project; @Override diff --git a/codegen-maven-plugin/src/main/java/org/openjax/codegen/template/TemplateMojo.java b/codegen-maven-plugin/src/main/java/org/openjax/codegen/template/TemplateMojo.java index 824f80f..5eafbe1 100644 --- a/codegen-maven-plugin/src/main/java/org/openjax/codegen/template/TemplateMojo.java +++ b/codegen-maven-plugin/src/main/java/org/openjax/codegen/template/TemplateMojo.java @@ -44,8 +44,8 @@ /** * Maven MOJO for {@link Templates}. */ -@Mojo(name="template", defaultPhase=LifecyclePhase.GENERATE_SOURCES) -@Execute(goal="template") +@Mojo(name = "template", defaultPhase = LifecyclePhase.GENERATE_SOURCES) +@Execute(goal = "template") public final class TemplateMojo extends AbstractMojo { private static class Raster { private static final Pattern pattern = Pattern.compile("<.>"); @@ -87,25 +87,25 @@ private static boolean shouldSkip(final ArrayList keys, final ArrayList< return false; } - @Parameter(property="templates", required=true) + @Parameter(property = "templates", required = true) private List templates; - @Parameter(property="destDir", required=true) + @Parameter(property = "destDir", required = true) private File destDir; - @Parameter(property="parameters", required=true) + @Parameter(property = "parameters", required = true) private Map parameters; - @Parameter(property="skips", required=false) + @Parameter(property = "skips", required = false) private List skips; - @Parameter(property="alias", required=false) + @Parameter(property = "alias", required = false) private Map alias; - @Parameter(defaultValue="${project}", readonly=true, required=true) + @Parameter(defaultValue = "${project}", readonly = true, required = true) private MavenProject project; - @Parameter(property="overwrite") + @Parameter(property = "overwrite") private boolean overwrite = true; @Override diff --git a/radixtree/src/main/java/org/openjax/codegen/radixtree/RadixTreeEnumGenerator.java b/radixtree/src/main/java/org/openjax/codegen/radixtree/RadixTreeEnumGenerator.java index 049f52f..772e8b6 100644 --- a/radixtree/src/main/java/org/openjax/codegen/radixtree/RadixTreeEnumGenerator.java +++ b/radixtree/src/main/java/org/openjax/codegen/radixtree/RadixTreeEnumGenerator.java @@ -31,6 +31,7 @@ */ public final class RadixTreeEnumGenerator { private static final Pattern whitespacePattern = Pattern.compile("\\s+"); + private static final class Word { private final String name; private final String identifier; diff --git a/radixtree/src/test/java/org/openjax/codegen/radixtree/RadixTreeEnumGeneratorTest.java b/radixtree/src/test/java/org/openjax/codegen/radixtree/RadixTreeEnumGeneratorTest.java index cc41c81..989d36d 100644 --- a/radixtree/src/test/java/org/openjax/codegen/radixtree/RadixTreeEnumGeneratorTest.java +++ b/radixtree/src/test/java/org/openjax/codegen/radixtree/RadixTreeEnumGeneratorTest.java @@ -50,7 +50,7 @@ private static void assertLookup(final Class enumClass, final Enum keyword for (int i = 0, i$ = string.length(); i < i$; ++i) { // [N] final char ch = string.charAt(i); word = (Enum)findNext.invoke(null, word, i, ch); - if (logger.isInfoEnabled()) logger.info(ch + ": " + word); + if (logger.isInfoEnabled()) { logger.info(ch + ": " + word); } if (word == null) break; }