Browse Source

equals/hashCode inconsistent for anonymous Comparator; removed both.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@474379 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
91a92f1034
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java

+ 0
- 6
src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java View File

@@ -394,12 +394,6 @@ public class EchoProperties extends Task {
Set result = super.entrySet();
if (JavaEnvUtils.isKaffe()) {
TreeSet t = new TreeSet(new Comparator() {
public boolean equals(Object o) {
return false;
}
public int hashCode() {
return 0;
}
public int compare(Object o1, Object o2) {
String key1 = (String) ((Map.Entry) o1).getKey();
String key2 = (String) ((Map.Entry) o2).getKey();


Loading…
Cancel
Save