forked from I2P_Developers/i2p.i2p
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:
@ -46,15 +46,8 @@ public class ObjectCounter<K> 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<K> objects() {
|
||||
if (SystemVersion.isAndroid()) {
|
||||
return ((Map<K, ?>)this.map).keySet();
|
||||
}
|
||||
return this.map.keySet();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user