diff options
Diffstat (limited to 'javax/xml/namespace/QName.java')
-rw-r--r-- | javax/xml/namespace/QName.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/javax/xml/namespace/QName.java b/javax/xml/namespace/QName.java index 3c7562378..4033febfc 100644 --- a/javax/xml/namespace/QName.java +++ b/javax/xml/namespace/QName.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -128,20 +128,20 @@ public class QName implements Serializable { if (qName == null) { - CPStringBuilder buf = new CPStringBuilder(); - if (namespaceURI.length() > 0) - { - buf.append('{'); - buf.append(namespaceURI); - buf.append('}'); - } - if (prefix.length() > 0) - { - buf.append(prefix); - buf.append(':'); - } - buf.append(localPart); - qName = buf.toString(); + CPStringBuilder buf = new CPStringBuilder(); + if (namespaceURI.length() > 0) + { + buf.append('{'); + buf.append(namespaceURI); + buf.append('}'); + } + if (prefix.length() > 0) + { + buf.append(prefix); + buf.append(':'); + } + buf.append(localPart); + qName = buf.toString(); } return qName; } @@ -150,7 +150,7 @@ public class QName implements Serializable { if (qNameAsString == null) throw new IllegalArgumentException("qNameAsString can't be null"); - + String namespaceUri = "", prefix = null; int start = qNameAsString.indexOf('{'); int end = qNameAsString.indexOf('}'); @@ -169,5 +169,5 @@ public class QName implements Serializable } return new QName(namespaceUri, qNameAsString, prefix); } - + } |