ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r474379 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
Date Mon, 13 Nov 2006 15:57:10 GMT
Author: mbenson
Date: Mon Nov 13 07:57:09 2006
New Revision: 474379

URL: http://svn.apache.org/viewvc?view=rev&rev=474379
Log:
equals/hashCode inconsistent for anonymous Comparator; removed both.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java?view=diff&rev=474379&r1=474378&r2=474379
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java Mon
Nov 13 07:57:09 2006
@@ -394,12 +394,6 @@
                 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();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message