[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: svn commit: r778251 -
From: mrglavas () apache ! org
Date: 2009-05-24 22:44:24
Message-ID: 20090524224424.E62C923888C2 () eris ! apache ! org
[Download RAW message or body]
Author: mrglavas
Date: Sun May 24 22:44:24 2009
New Revision: 778251
URL: http://svn.apache.org/viewvc?rev=778251&view=rev
Log:
Minor performance improvement. String.length() == 0 tends to be slightly faster than \
String.equals("").
Modified:
xerces/java/branches/xml-schema-1.1-dev/tests/dom/DTest.java
Modified: xerces/java/branches/xml-schema-1.1-dev/tests/dom/DTest.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/tests/dom/DTest.java?rev=778251&r1=778250&r2=778251&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/tests/dom/DTest.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/tests/dom/DTest.java Sun May 24 22:44:24 \
2009 @@ -627,7 +627,7 @@
}
attributeNode.setValue(null);
- if (! attributeNode.getValue().equals(""))
+ if (attributeNode.getValue().length() != 0)
{
System.out.println("Warning!!! Attr's 'setValue' to 'null' method failed to work \
properly!"); OK = false;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic