summaryrefslogtreecommitdiff
path: root/gnu/xml/dom/DomDocument.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/xml/dom/DomDocument.java')
-rw-r--r--gnu/xml/dom/DomDocument.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/xml/dom/DomDocument.java b/gnu/xml/dom/DomDocument.java
index 900d03ac3..0d52a23ff 100644
--- a/gnu/xml/dom/DomDocument.java
+++ b/gnu/xml/dom/DomDocument.java
@@ -535,8 +535,7 @@ public class DomDocument
int index = name.indexOf(':');
if (index != -1)
{
- if (index == 0 || index == (len - 1) ||
- name.lastIndexOf(':') != index)
+ if (index == 0 || name.lastIndexOf(':') != index)
{
throw new DomDOMException(DOMException.NAMESPACE_ERR,
name, null, 0);