Skip to content

Instantly share code, notes, and snippets.

@scheakur
Created January 29, 2014 13:42
Show Gist options
  • Save scheakur/8688222 to your computer and use it in GitHub Desktop.
Save scheakur/8688222 to your computer and use it in GitHub Desktop.
import java.net.URL;
import java.security.Security;
public class Test3 {
public static void main(String... args) throws Exception {
Security.setProperty("networkaddress.cache.ttl" , "0");
URL url = new URL("http://google.com");
for (int i = 0; i < 100; i++) {
System.out.println(url.equals(new URL("http://google.com")));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment