Author: mukulg
Date: Sun May 16 10:06:57 2010
New Revision: 944789
URL: http://svn.apache.org/viewvc?rev=944789&view=rev
Log:
there's a repeated conditional test. this was harmless, but still it was
appropriate to fix this.
Modified:
xerces/java/trunk/src/org/apache/xml/serialize/DOMSerializerImpl.java
Modified: xerces/java/trunk/src/org/apache/xml/serialize/DOMSerializerImpl.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xml/serialize/DOMSerializerImpl.java?rev=944789&r1=944788&r2=944789&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xml/serialize/DOMSerializerImpl.java
(original)
+++ xerces/java/trunk/src/org/apache/xml/serialize/DOMSerializerImpl.java Sun
May 16 10:06:57 2010
@@ -954,18 +954,15 @@ public class DOMSerializerImpl implement
wellformed =
CoreDocumentImpl.isXMLName(node.getNodeName() , xml11Version);
}
if (!wellformed){
- if (!wellformed){
- if (fErrorHandler != null) {
- String msg =
DOMMessageFormatter.formatMessage(
- DOMMessageFormatter.DOM_DOMAIN,
- "wf-invalid-character-in-node-name",
- new Object[]{"Element",
node.getNodeName()});
-
DOMNormalizer.reportDOMError(fErrorHandler, fError, fLocator, msg,
DOMError.SEVERITY_FATAL_ERROR,
- "wf-invalid-character-in-node-name");
- }
-
- }
- }
+ if (fErrorHandler != null) {
+ String msg = DOMMessageFormatter.formatMessage(
+ DOMMessageFormatter.DOM_DOMAIN,
+ "wf-invalid-character-in-node-name",
+ new Object[]{"Element",
node.getNodeName()});
+ DOMNormalizer.reportDOMError(fErrorHandler,
fError, fLocator, msg, DOMError.SEVERITY_FATAL_ERROR,
+ "wf-invalid-character-in-node-name");
+ }
+ }
}
NamedNodeMap attributes = (node.hasAttributes()) ?
node.getAttributes() : null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]