un-do android check in ObjectCounter and fix hte issue by correctly setting the classpath instead, see RELEASE-PROCESS.md in i2p.android.base

This commit is contained in:
hankhill19580
2020-10-29 04:04:18 +00:00
parent 70eb2a49f9
commit 8d0b1214d2

View File

@ -46,15 +46,8 @@ public class ObjectCounter<K> implements Serializable {
/** /**
* @return set of objects with counts &gt; 0 * @return set of objects with counts &gt; 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<K> objects() { public Set<K> objects() {
if (SystemVersion.isAndroid()) {
return ((Map<K, ?>)this.map).keySet();
}
return this.map.keySet(); return this.map.keySet();
} }