| 1006 | } |
| 1007 | |
| 1008 | @Command(name = "flex") |
| 1009 | static class ExitCodeGen implements Callable<Integer>, IExitCodeGenerator { |
| 1010 | @Option(names = "-n") boolean negate; |
| 1011 | ExitCodeGen() { } |
| 1012 | public Integer call() { return negate ? -6 : 6; } |
| 1013 | public int getExitCode() { return negate ? -5 : 5; } |
| 1014 | } |
| 1015 | @Command(subcommands = ExitCodeGen.class) |
| 1016 | static class Cmd implements Callable<Integer>, IExitCodeGenerator { |
| 1017 | private final int callResult; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…