forked from remkop/picocli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06d37d1
commit 0025569
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
picocli-annotation-processing-tests/src/test/resources/picocli/issue803/Issue803.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package picocli.issue803; | ||
|
||
import picocli.CommandLine.*; | ||
import picocli.CommandLine.Model.*; | ||
|
||
import java.util.Stack; | ||
import java.util.concurrent.Callable; | ||
|
||
import picocli.CommandLine; | ||
|
||
@Command | ||
public class Issue803 implements Callable<Integer> { | ||
@Parameters(index = "0", description = "Ignored", parameterConsumer = LocalPC.class) | ||
private String file; | ||
@Override | ||
public Integer call() throws Exception {return 0;} | ||
|
||
public static class LocalPC implements IParameterConsumer { | ||
@Override public void consumeParameters(Stack<String> args, ArgSpec argSpec, CommandSpec commandSpec) {return;} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...otation-processing-tests/src/test/resources/picocli/issue803/issue803-reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"name" : "picocli.issue803.Issue803", | ||
"allDeclaredConstructors" : true, | ||
"allPublicConstructors" : true, | ||
"allDeclaredMethods" : true, | ||
"allPublicMethods" : true, | ||
"fields" : [ | ||
{ "name" : "file" } | ||
] | ||
}, | ||
{ | ||
"name" : "picocli.issue803$LocalPC", | ||
"allDeclaredConstructors" : true, | ||
"allPublicConstructors" : true, | ||
"allDeclaredMethods" : true, | ||
"allPublicMethods" : true | ||
} | ||
] |