Remove Deprecated tags from o.e.c.c.MapBuilder#immutableMap
This commit is contained in:
parent
9385365d63
commit
e95af69fb7
|
@ -84,14 +84,11 @@ public class MapBuilder<K, V> {
|
|||
}
|
||||
|
||||
/**
|
||||
* Build an immutable copy of the map under construction.
|
||||
*
|
||||
* @deprecated always copies the map under construction. prefer building a
|
||||
* HashMap by hand and wrapping it in an unmodifiableMap
|
||||
* Build an immutable copy of the map under construction. Always copies the map under construction. Prefer building
|
||||
* a HashMap by hand and wrapping it in an unmodifiableMap
|
||||
*/
|
||||
@Deprecated
|
||||
public Map<K, V> immutableMap() {
|
||||
// Note that this whole method is going to have to go next but we're changing it like this here just to keep the commit smaller.
|
||||
// TODO: follow the directions in the Javadoc for this method
|
||||
return unmodifiableMap(new HashMap<>(map));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue