Skip to content

Commit

Permalink
Fix compiler error under Java 5
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Oct 31, 2022
1 parent 8713bbd commit f46a60b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/java/picocli/Issue1767.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ public class Issue1767 {
static class TestCommand implements Callable<Integer> {
@ArgGroup TestArgGroup testArgGroup;
@Spec CommandSpec spec;

public static class TestArgGroup {
@Option(names = "-r")
public Integer option1;
}

@Override
public Integer call() throws Exception {
Integer value = spec.options().get(0).getValue();
return value==null ? 0 : value;
Expand Down

0 comments on commit f46a60b

Please sign in to comment.