diff --git a/core/java/src/net/i2p/util/ObjectCounter.java b/core/java/src/net/i2p/util/ObjectCounter.java index b466283554..74c61035d5 100644 --- a/core/java/src/net/i2p/util/ObjectCounter.java +++ b/core/java/src/net/i2p/util/ObjectCounter.java @@ -46,15 +46,8 @@ public class ObjectCounter implements Serializable { /** * @return set of objects with counts > 0 - * - * note that on Android ConcurrentMap.keySet() returns a Set instead of a - * keySetView. The workaround is to cast it to a map before returning the - * keySet on Android. */ public Set objects() { - if (SystemVersion.isAndroid()) { - return ((Map)this.map).keySet(); - } return this.map.keySet(); }