Skip to content

Commit 6dc3406

Browse files
committed
Type safety
1 parent 30868c5 commit 6dc3406

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/com/cleancoder/args/Args.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import static com.cleancoder.args.ArgsException.ErrorCode.*;
66

77
public class Args {
8-
private final Map<Character, ArgumentMarshaler> marshalers = new HashMap<>();
8+
private final Map<Character, ArgumentMarshaler<?>> marshalers = new HashMap<>();
99
private final Set<Character> argsFound = new HashSet<>();
1010
private ListIterator<String> currentArgument;
1111

@@ -66,7 +66,7 @@ private void parseArgumentCharacters(String argChars) throws ArgsException {
6666
}
6767

6868
private void parseArgumentCharacter(char argChar) throws ArgsException {
69-
ArgumentMarshaler m = marshalers.get(argChar);
69+
ArgumentMarshaler<?> m = marshalers.get(argChar);
7070
if (m == null) {
7171
throw new ArgsException(UNEXPECTED_ARGUMENT, argChar, null);
7272
} else {

0 commit comments

Comments
 (0)