CPD Results
The following document contains the results of PMD's CPD 4.3.
Duplications
File | Line |
---|
eu/scape_project/watch/domain/EntityType.java | 45 |
eu/scape_project/watch/domain/Source.java | 45 |
}
/**
* Unique name that identifies the entity type.
*/
@Id
@XmlElement
private String name;
/**
* A description of the entity type.
*/
@XmlElement
private String description;
public String getName() {
return this.name;
}
public void setName(final String name) {
this.name = name;
}
public String getDescription() {
return this.description;
}
public void setDescription(final String description) {
this.description = description;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.description == null) ? 0 : this.description.hashCode());
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
return result;
}
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final EntityType other = (EntityType) obj; |
File | Line |
---|
eu/scape_project/watch/domain/DictionaryItem.java | 77 |
eu/scape_project/watch/domain/Entry.java | 90 |
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.key == null) ? 0 : this.key.hashCode());
result = prime * result + ((this.value == null) ? 0 : this.value.hashCode());
return result;
}
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final DictionaryItem other = (DictionaryItem) obj; |