@Override
    public boolean equals(@Nullable Object other) {
        return (this == other || (other instanceof UrlResource &&
            getCleanedUrl().equals(((UrlResource) other).getCleanedUrl())));
    }
This implementation compares the underlying URL references.
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/UrlResource.java