From 6dc6ca7713768d743bca7004876716c36455851a Mon Sep 17 00:00:00 2001
From: zab2 <zab2@mail.i2p>
Date: Wed, 20 Nov 2013 15:11:35 +0000
Subject: [PATCH] avoid <? extends Object> generics

---
 .../src/net/i2p/router/peermanager/ProfileOrganizer.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/router/java/src/net/i2p/router/peermanager/ProfileOrganizer.java b/router/java/src/net/i2p/router/peermanager/ProfileOrganizer.java
index 30eb5c9dff..4d5a6548c1 100644
--- a/router/java/src/net/i2p/router/peermanager/ProfileOrganizer.java
+++ b/router/java/src/net/i2p/router/peermanager/ProfileOrganizer.java
@@ -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;
         }
-- 
GitLab