ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Manifest.java
Date Sun, 20 Jan 2002 12:37:07 GMT
conor       02/01/20 04:37:07

  Modified:    src/main/org/apache/tools/ant/taskdefs Manifest.java
  Log:
  Correct equality check in Manifest.Section class
  
  Revision  Changes    Path
  1.16      +5 -4      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java
  
  Index: Manifest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -w -u -r1.15 -r1.16
  --- Manifest.java	14 Dec 2001 11:49:15 -0000	1.15
  +++ Manifest.java	20 Jan 2002 12:37:07 -0000	1.16
  @@ -494,10 +494,11 @@
                   return false;
               }
   
  -            for (Enumeration e = attributes.elements(); e.hasMoreElements();) {
  -                Attribute attribute  = (Attribute)e.nextElement();
  -                Attribute rshAttribute = (Attribute)rhsSection.attributes.get(attribute.getName().toLowerCase());
  -                if (!attribute.equals(rshAttribute)) {
  +            for (Enumeration e = attributes.keys(); e.hasMoreElements();) {
  +                String attributeName = (String)e.nextElement();
  +                Object attributeValue  = attributes.get(attributeName);
  +                Object rshAttributeValue = rhsSection.attributes.get(attributeName);
  +                if (!attributeValue.equals(rshAttributeValue)) {
                       return false;
                   }
               }
  
  
  

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


Mime
View raw message