jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Map<IKey, ParameterDescription> used with containsKey(String)

Open lindenb opened this issue 8 years ago • 0 comments

If I'm not wrong in https://github.com/cbeust/jcommander/blob/master/src/main/java/com/beust/jcommander/JCommander.java#L652

 if (descriptions.containsKey(name)) {

description is a Map<IKey, ParameterDescription> and it's compared to a String.

the implementations of IKey.equals in StringKey or ProgramName don't handle the String.class

lindenb avatar Nov 29 '17 10:11 lindenb