Skip to content

Commit

Permalink
CliParameter: narrow types on Parser @FunctionalInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Sep 23, 2023
1 parent 5fb31b2 commit f24c3ad
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package org.consensusj.jsonrpc.cli;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;

import java.util.stream.Stream;

/**
Expand Down Expand Up @@ -87,6 +90,6 @@ record Invalid(String source, Exception error) implements CliParameter {
*/
@FunctionalInterface
interface Parser {
Object apply(String s) throws Exception;
JsonNode apply(String s) throws JsonProcessingException;
}
}

0 comments on commit f24c3ad

Please sign in to comment.