I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 6dc6ca77 authored by zab2's avatar zab2
Browse files

avoid <? extends Object> generics

parent eabcc96a
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ public class ProfileOrganizer {
return old;
}
private int count(Map<? extends Object, ? extends Object> m) {
private int count(Map<Hash, PeerProfile> m) {
getReadLock();
try {
return m.size();
......@@ -1296,8 +1296,8 @@ public class ProfileOrganizer {
}
/** does a contain any of the elements in b? */
private static boolean containsAny(Set<? extends Object> a, Set<? extends Object> b) {
for (Object o : b) {
private static <T> boolean containsAny(Set<T> a, Set<T> b) {
for (T o : b) {
if (a.contains(o))
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment