commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <>
Subject [COLLECTIONS] MultiHashMap.get()
Date Wed, 25 Feb 2004 18:50:03 GMT
In the documentation for MultiHashMap, it claims "Getting a value will
always return a Collection, holding all the values put to that key."
However, the following code fails...


final MultiHashMap map = new MultiHashMap();

assertNotNull( map.get( "Hello" ) );


>From the documentation, I would think that the get() method should return an
EMPTY (and probably unmodifiable) collection, not a null reference.  Am I
misinterpreting it?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message