diff --git a/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/GrammarDependencies.java b/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/GrammarDependencies.java index 5182c894a..ed22514e9 100644 --- a/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/GrammarDependencies.java +++ b/antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/GrammarDependencies.java @@ -50,11 +50,12 @@ class GrammarDependencies { } /** - * Sets the package to use. + * Determines the package to use. * * @param arguments the tool arguments. * - * @return self-reference. + * @return the package. Returns {@code null} to indicate that no package should be + * used. */ private String getPackage(List arguments) { int index = (arguments != null) ? arguments.indexOf("-package") : -1;