[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: svn commit: r778250 - /xerces/java/trunk/tests/dom/DTest.java
From: mrglavas () apache ! org
Date: 2009-05-24 22:44:06
Message-ID: 20090524224406.AEBF723888A2 () eris ! apache ! org
[Download RAW message or body]
Author: mrglavas
Date: Sun May 24 22:44:06 2009
New Revision: 778250
URL: http://svn.apache.org/viewvc?rev=778250&view=rev
Log:
Minor performance improvement. String.length() == 0 tends to be slightly faster than \
String.equals("").
Modified:
xerces/java/trunk/tests/dom/DTest.java
Modified: xerces/java/trunk/tests/dom/DTest.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/tests/dom/DTest.java?rev=778250&r1=778249&r2=778250&view=diff
==============================================================================
--- xerces/java/trunk/tests/dom/DTest.java (original)
+++ xerces/java/trunk/tests/dom/DTest.java Sun May 24 22:44:06 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