Skip to content

Commit 4b5c70a

Browse files
committed
Fixes #586: remove CliJavaNullValueConverter picocli workaround
1 parent 38e8470 commit 4b5c70a

File tree

3 files changed

+1
-35
lines changed

3 files changed

+1
-35
lines changed

cli-protonj2/src/main/java/com/redhat/mqe/CliJavaNullValueConverter.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

cli-protonj2/src/main/java/com/redhat/mqe/CliProtonJ2Sender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class CliProtonJ2Sender extends CliProtonJ2SenderReceiver implements Call
9696
private Long msgTtl;
9797

9898
// e.g. `--msg-content-list-item --msg-content-list-item "String"`
99-
@CommandLine.Option(names = {"--msg-content-list-item"}, arity = "0..1", fallbackValue = Main.CLI_JAVA_NULL_VALUE, converter = CliJavaNullValueConverter.class)
99+
@CommandLine.Option(names = {"--msg-content-list-item"}, arity = "0..1", fallbackValue = CommandLine.Option.NULL_VALUE)
100100
private List<String> msgContentListItem;
101101

102102
@CommandLine.Option(names = {"--msg-content-map-item"})

cli-protonj2/src/main/java/com/redhat/mqe/Main.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
}
2323
)
2424
class Main implements Callable<Integer> {
25-
public static final String CLI_JAVA_NULL_VALUE = "CLI_JAVA_" + CommandLine.Option.NULL_VALUE;
26-
2725
@Override
2826
public Integer call() throws Exception { // your business logic goes here...
2927
return 0;

0 commit comments

Comments
 (0)