Community
Participate
Working Groups
Let the VersionedName implement the equals() and hashCode() methods so that it can be used as a key in a map.
Created attachment 128836 [details] Patch adding equals() and hashCode() methods
I'm curious as to why the constructor: VersionedName(String id, String version) will convert a null version argument into the emptyVersion when the constructor: VersionedName(String id, Version version) makes no such attempt. Wouldn't it be more consistent to store either null or emptyVersion in both cases?
I can't see any reason in particular. can you add that change to the patch?
Created attachment 130909 [details] Updated patch where both constructors replace null with emptyVersion
Patch released to HEAD.