Author: rob.stryker(a)jboss.com
Date: 2007-09-10 20:50:41 -0400 (Mon, 10 Sep 2007)
New Revision: 3514
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model/descriptor/XPathFileResult.java
Log:
attribute of the empty string forced hasAttribute() to return true.
This was a bug.
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model/descriptor/XPathFileResult.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model/descriptor/XPathFileResult.java 2007-09-10
22:07:03 UTC (rev 3513)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/model/descriptor/XPathFileResult.java 2007-09-11
00:50:41 UTC (rev 3514)
@@ -56,7 +56,7 @@
this.node = node;
this.attribute = attribute;
this.index = index;
- this.hasAttribute = attribute == null ? false : true;
+ this.hasAttribute = attribute == null || attribute.equals("") ? false :
true;
}
public int getIndex() {
Show replies by date