Remove duplicate methods for:

equals
hashCode

Change-Id: If0c909302084fa3c9fa8b022864a580208b546f0

Former-commit-id: 27d0250b3b [formerly 87c7b2fc8d] [formerly f9f972b06f] [formerly 8880f378c2 [formerly f9f972b06f [formerly f64f03f64cf58db09eccd9346a436bdfd779d7ce]]]
Former-commit-id: 8880f378c2
Former-commit-id: 8a990486ca170fc62be661c9742ad182bfd48a11 [formerly dc11353bf3]
Former-commit-id: 95cb360c93
This commit is contained in:
Greg Armendariz 2012-09-28 10:09:11 -05:00
parent 542c6e152a
commit 2db994f7ac

View file

@ -149,46 +149,4 @@ public class FileTreeEntryData {
return true;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((path == null) ? 0 : path.hashCode());
result = prime * result
+ ((pathData == null) ? 0 : pathData.hashCode());
return result;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
FileTreeEntryData other = (FileTreeEntryData) obj;
if (path == null) {
if (other.path != null)
return false;
} else if (!path.equals(other.path))
return false;
if (pathData == null) {
if (other.pathData != null)
return false;
} else if (!pathData.equals(other.pathData))
return false;
return true;
}
}