Skip to content

Commit d76f7ff

Browse files
committed
added missing @OverRide annotation on flatten() method
suppressed "unused" warnings on unused flatten() arguments git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1095610 13f79535-47bb-0310-9956-ffa450edef68
1 parent 51911b4 commit d76f7ff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/org/apache/commons/cli/BasicParser.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ public class BasicParser extends Parser
4141
* when an non option is found.
4242
* @return The <code>arguments</code> String array.
4343
*/
44-
protected String[] flatten(Options options, String[] arguments, boolean stopAtNonOption)
44+
@Override
45+
protected String[] flatten(@SuppressWarnings("unused") Options options,
46+
String[] arguments,
47+
@SuppressWarnings("unused") boolean stopAtNonOption)
4548
{
4649
// just echo the arguments
4750
return arguments;

0 commit comments

Comments
 (0)