Skip to content

Commit

Permalink
Fixes rh-messaging#586: remove CliJavaNullValueConverter picocli wo…
Browse files Browse the repository at this point in the history
…rkaround
  • Loading branch information
jiridanek committed Apr 21, 2023
1 parent f6073d0 commit 3e3e1f2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class CliProtonJ2Sender extends CliProtonJ2SenderReceiver implements Call
private Long msgTtl;

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

@CommandLine.Option(names = {"--msg-content-map-item"})
Expand Down
2 changes: 0 additions & 2 deletions cli-protonj2/src/main/java/com/redhat/mqe/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
}
)
class Main implements Callable<Integer> {
public static final String CLI_JAVA_NULL_VALUE = "CLI_JAVA_" + CommandLine.Option.NULL_VALUE;

@Override
public Integer call() throws Exception { // your business logic goes here...
return 0;
Expand Down

0 comments on commit 3e3e1f2

Please sign in to comment.