Skip to content

Commit 3e3e1f2

Browse files
committed
Fixes rh-messaging#586: remove CliJavaNullValueConverter picocli workaround
1 parent f6073d0 commit 3e3e1f2

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
@@ -82,7 +82,7 @@ public class CliProtonJ2Sender extends CliProtonJ2SenderReceiver implements Call
8282
private Long msgTtl;
8383

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

8888
@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
@@ -28,8 +28,6 @@
2828
}
2929
)
3030
class Main implements Callable<Integer> {
31-
public static final String CLI_JAVA_NULL_VALUE = "CLI_JAVA_" + CommandLine.Option.NULL_VALUE;
32-
3331
@Override
3432
public Integer call() throws Exception { // your business logic goes here...
3533
return 0;

0 commit comments

Comments
 (0)