Browse Source

add since 1.6.3 to equals and hashcode

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277971 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
5e6d45bc8d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/org/apache/tools/ant/Location.java

+ 2
- 0
src/main/org/apache/tools/ant/Location.java View File

@@ -150,6 +150,7 @@ public class Location implements Serializable {
* @param other the object to compare to. * @param other the object to compare to.
* @return true if the other object contains the same information * @return true if the other object contains the same information
* as this object. * as this object.
* @since Ant 1.6.3
*/ */
public boolean equals(Object other) { public boolean equals(Object other) {
if (this == other) { if (this == other) {
@@ -167,6 +168,7 @@ public class Location implements Serializable {
/** /**
* Hash operation. * Hash operation.
* @return a hash code value for this location. * @return a hash code value for this location.
* @since Ant 1.6.3
*/ */
public int hashCode() { public int hashCode() {
return toString().hashCode(); return toString().hashCode();


Loading…
Cancel
Save