Incorrect javadoc for TObjectIntMap.get()
Issue #43
resolved
The JavaDoc states that the get() method returns the int value, or null if this map contains no mapping for the key Obviously, a method that returns a primitive cannot return null. It actually returns the no-entry value.
Comments (8)
-
-
- changed milestone to Next Minor Release
-
assigned issue to
-
- changed milestone to 3.0.5.b1
-
- changed milestone to 3.0.5.m1
-
- changed version to 3.0.4
-
- changed status to resolved
Fix pushed in 639854f.
The docs were mostly synced up with _K_V_Maps, which we much simpler and more correct.
-
Issue
#49was marked as a duplicate of this issue. -
- changed milestone to 3.1
- Log in to comment
...and the TIntObjectMap says: "Returns: the int value to which the specified key is mapped, or null if this map contains no mapping for the key" - It think there just something mixed up.