From 8d0b1214d2d18c8d4654f2a21352545ed29fa4e7 Mon Sep 17 00:00:00 2001 From: hankhill19580 Date: Thu, 29 Oct 2020 04:04:18 +0000 Subject: [PATCH] un-do android check in ObjectCounter and fix hte issue by correctly setting the classpath instead, see RELEASE-PROCESS.md in i2p.android.base --- core/java/src/net/i2p/util/ObjectCounter.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/java/src/net/i2p/util/ObjectCounter.java b/core/java/src/net/i2p/util/ObjectCounter.java index b46628355..74c61035d 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(); }