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 11, 2023
1 parent 38e8470 commit 4b5c70a
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 @@ -96,7 +96,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 @@ -22,8 +22,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 4b5c70a

Please sign in to comment.