More cleanup; use save Collection comparison, fix Javadoc

This commit is contained in:
Marco Hunsicker 2016-11-17 23:27:09 +01:00
parent 5f5a8949f6
commit 00347217ed
1 changed files with 3 additions and 2 deletions

View File

@ -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<String> arguments) {
int index = (arguments != null) ? arguments.indexOf("-package") : -1;