Remove duplicate methods for:
equals hashCode Change-Id: If0c909302084fa3c9fa8b022864a580208b546f0 Former-commit-id:27d0250b3b
[formerly87c7b2fc8d
] [formerlyf9f972b06f
] [formerly8880f378c2
[formerlyf9f972b06f
[formerly f64f03f64cf58db09eccd9346a436bdfd779d7ce]]] Former-commit-id:8880f378c2
Former-commit-id: 8a990486ca170fc62be661c9742ad182bfd48a11 [formerlydc11353bf3
] Former-commit-id:95cb360c93
This commit is contained in:
parent
542c6e152a
commit
2db994f7ac
1 changed files with 0 additions and 42 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue