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