Skip to content

Commit

Permalink
Apply auto-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Sep 26, 2023
1 parent 68a777a commit dc08842
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("<.>");
Expand Down Expand Up @@ -87,25 +87,25 @@ private static boolean shouldSkip(final ArrayList<String> keys, final ArrayList<
return false;
}

@Parameter(property="templates", required=true)
@Parameter(property = "templates", required = true)
private List<File> 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<String,Parameters> parameters;

@Parameter(property="skips", required=false)
@Parameter(property = "skips", required = false)
private List<String> skips;

@Parameter(property="alias", required=false)
@Parameter(property = "alias", required = false)
private Map<String,String> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dc08842

Please sign in to comment.