@@ -0,0 +1,677 @@
+import java.net.URL;%0Aimport java.util.HashMap;%0Aimport java.util.HashSet;%0Aimport java.util.Map;%0Aimport java.util.Set;%0A%0A%0A/**%0A * equals and hashCode are blocking methods on URLs%0A * @author pugh%0A *%0A */%0Apublic class BlockingMethodsOnURLs %7B%0A%09static int f(URL u) %7B%0A%09%09return u.hashCode();%0A%09%7D%0A%09static boolean g(URL u1, URL u2) %7B%0A%09%09return u1.equals(u2);%0A%09%7D%0A%09static Set%3CURL%3E foo() %7B%0A%09%09return new HashSet%3CURL%3E();%0A%09%7D%0A%09static Map%3CURL,String%3E foo2() %7B%0A%09%09return new HashMap%3CURL,String%3E();%0A%09%7D%0A%09static Map%3CString, URL%3E falsePositive() %7B%0A%09%09return new HashMap%3CString, URL%3E();%0A%09%7D%0A%09public static Map%3CURL, String%3E map;%0A%09public static Map%3CString, URL%3E falsePositiveMap;%0A%09public static Set%3CURL%3E set;%0A%7D%0A

add test case for blocking URL methods