We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30868c5 commit 6dc3406Copy full SHA for 6dc3406
1 file changed
src/com/cleancoder/args/Args.java
@@ -5,7 +5,7 @@
5
import static com.cleancoder.args.ArgsException.ErrorCode.*;
6
7
public class Args {
8
- private final Map<Character, ArgumentMarshaler> marshalers = new HashMap<>();
+ private final Map<Character, ArgumentMarshaler<?>> marshalers = new HashMap<>();
9
private final Set<Character> argsFound = new HashSet<>();
10
private ListIterator<String> currentArgument;
11
@@ -66,7 +66,7 @@ private void parseArgumentCharacters(String argChars) throws ArgsException {
66
}
67
68
private void parseArgumentCharacter(char argChar) throws ArgsException {
69
- ArgumentMarshaler m = marshalers.get(argChar);
+ ArgumentMarshaler<?> m = marshalers.get(argChar);
70
if (m == null) {
71
throw new ArgsException(UNEXPECTED_ARGUMENT, argChar, null);
72
} else {
0 commit comments