From 6b3bfdd9d8f249ec2b7257505d3bfcde6f8d08c9 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sat, 1 Dec 2012 15:50:19 -0600 Subject: [PATCH] Remove unused parameter, and @NotNull annotation --- .../src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java b/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java index c0991c102..f4b40fb4d 100644 --- a/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java +++ b/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/Antlr4Mojo.java @@ -32,6 +32,7 @@ package org.antlr.mojo.antlr4; import org.antlr.v4.Tool; import org.antlr.v4.codegen.CodeGenerator; import org.antlr.v4.runtime.misc.MultiMap; +import org.antlr.v4.runtime.misc.NotNull; import org.antlr.v4.runtime.misc.Utils; import org.antlr.v4.tool.Grammar; import org.apache.maven.plugin.AbstractMojo; @@ -244,7 +245,7 @@ public class Antlr4Mojo extends AbstractMojo { List> argumentSets; try { List args = getCommandArguments(); - argumentSets = processGrammarFiles(args, sourceDirectory, outputDirectory); + argumentSets = processGrammarFiles(args, sourceDirectory); } catch (InclusionScanException ie) { log.error(ie); throw new MojoExecutionException("Fatal error occured while evaluating the names of the grammar files to analyze", ie); @@ -327,11 +328,10 @@ public class Antlr4Mojo extends AbstractMojo { /** * * @param sourceDirectory - * @param outputDirectory * @throws org.codehaus.plexus.compiler.util.scan.InclusionScanException */ - private List> processGrammarFiles(List args, File sourceDirectory, File outputDirectory) - throws InclusionScanException { + @NotNull + private List> processGrammarFiles(List args, File sourceDirectory) throws InclusionScanException { // Which files under the source set should we be looking for as grammar files SourceMapping mapping = new SuffixMapping("g4", Collections.emptySet());