CPD Results
The following document contains the results of PMD's CPD 7.7.0.
Duplications
File | Line |
---|---|
org/apache/creadur/tentacles/License.java | 37 |
org/apache/creadur/tentacles/Notice.java | 37 |
} public String getText() { return this.text; } public String getKey() { return this.key; } public Set<Archive> getArchives() { return this.archives; } public List<File> getLocations() { return this.locations; } public Set<URI> locations(final Archive archive) { final URI contents = archive.contentsURI(); final Set<URI> locations = new HashSet<URI>(); for (final File file : this.locations) { final URI uri = file.toURI(); final URI relativize = contents.relativize(uri); if (!relativize.equals(uri)) { locations.add(relativize); } } return locations; } @Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final License license = (License) o; |