svn commit: r788711 - /lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/NamedXmlNodeImpl.java
[email protected] Fri, 26 Jun 2009 14:14:27 -0000
Newsgroups
gmane.comp.cms.lenya.cvs
Message-ID
<[email protected] >
Author: andreas
Date: Fri Jun 26 14:14:27 2009
New Revision: 788711
URL: http://svn.apache.org/viewvc?rev=788711&view=rev
Log:
[minor change] Externalize string variable.
Modified:
lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/NamedXmlNodeImpl.java
Modified: lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/NamedXmlNodeImpl.java
URL: http://svn.apache.org/viewvc/lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/NamedXmlNodeImpl.java?rev=788711&r1=788710&r2=788711&view=diff
==============================================================================
--- lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/NamedXmlNodeImpl.java (original)
+++ lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/xml/impl/NamedXmlNodeImpl.java Fri Jun 26 14:14:27 2009
@@ -43,9 +43,10 @@
String ns = getNamespaceUri();
String otherLocalName = otherNode.getLocalName();
- otherLocalName = otherLocalName == null ? "<NULL>" : otherLocalName;
+ final String nullValue = "<NULL>";
+ otherLocalName = otherLocalName == null ? nullValue : otherLocalName;
String localName = getLocalName();
- localName = localName == null ? "<NULL>" : localName;
+ localName = localName == null ? nullValue : localName;
return ((ns == null && otherNs == null) || ns.equals(otherNs))
&& otherLocalName.equals(localName);