forked from jasder/antlr
Remove unused parameter, and @NotNull annotation
This commit is contained in:
parent
5711ca4dbf
commit
6b3bfdd9d8
|
@ -32,6 +32,7 @@ package org.antlr.mojo.antlr4;
|
||||||
import org.antlr.v4.Tool;
|
import org.antlr.v4.Tool;
|
||||||
import org.antlr.v4.codegen.CodeGenerator;
|
import org.antlr.v4.codegen.CodeGenerator;
|
||||||
import org.antlr.v4.runtime.misc.MultiMap;
|
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.runtime.misc.Utils;
|
||||||
import org.antlr.v4.tool.Grammar;
|
import org.antlr.v4.tool.Grammar;
|
||||||
import org.apache.maven.plugin.AbstractMojo;
|
import org.apache.maven.plugin.AbstractMojo;
|
||||||
|
@ -244,7 +245,7 @@ public class Antlr4Mojo extends AbstractMojo {
|
||||||
List<List<String>> argumentSets;
|
List<List<String>> argumentSets;
|
||||||
try {
|
try {
|
||||||
List<String> args = getCommandArguments();
|
List<String> args = getCommandArguments();
|
||||||
argumentSets = processGrammarFiles(args, sourceDirectory, outputDirectory);
|
argumentSets = processGrammarFiles(args, sourceDirectory);
|
||||||
} catch (InclusionScanException ie) {
|
} catch (InclusionScanException ie) {
|
||||||
log.error(ie);
|
log.error(ie);
|
||||||
throw new MojoExecutionException("Fatal error occured while evaluating the names of the grammar files to analyze", 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 sourceDirectory
|
||||||
* @param outputDirectory
|
|
||||||
* @throws org.codehaus.plexus.compiler.util.scan.InclusionScanException
|
* @throws org.codehaus.plexus.compiler.util.scan.InclusionScanException
|
||||||
*/
|
*/
|
||||||
private List<List<String>> processGrammarFiles(List<String> args, File sourceDirectory, File outputDirectory)
|
@NotNull
|
||||||
throws InclusionScanException {
|
private List<List<String>> processGrammarFiles(List<String> args, File sourceDirectory) throws InclusionScanException {
|
||||||
// Which files under the source set should we be looking for as grammar files
|
// Which files under the source set should we be looking for as grammar files
|
||||||
SourceMapping mapping = new SuffixMapping("g4", Collections.<String>emptySet());
|
SourceMapping mapping = new SuffixMapping("g4", Collections.<String>emptySet());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue