1. Java's URL.equals() uses an internet connection

    Running FindBugs on some Java code warned me that the java.net.URL.equals() method performs domain name resolution. That means that running code will do a lookup to find the IP address of the URLs!

    It's documented, just like the same behavior of hashCode(), but that doesn't mean it's something I expected.

    To prevent the lookup FindBugs advices to use the URI class instead. Its equals()/hashCode() don't use the internet.

    Something to keep this in mind when using the URL class.