Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 70345 invoked by uid 500); 20 Aug 2002 02:13:14 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 70336 invoked by uid 500); 20 Aug 2002 02:13:14 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 20 Aug 2002 02:13:13 -0000 Message-ID: <20020820021313.13064.qmail@icarus.apache.org> From: rubys@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/src/org/apache/axis/encoding SerializationContextImpl.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rubys 2002/08/19 19:13:13 Modified: java/src/org/apache/axis/encoding SerializationContextImpl.java Log: Some days I get the feeling that some people are just trying to prove that they are smarter than the JIT. Revision Changes Path 1.58 +7 -3 xml-axis/java/src/org/apache/axis/encoding/SerializationContextImpl.java Index: SerializationContextImpl.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/SerializationContextImpl.java,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- SerializationContextImpl.java 18 Aug 2002 13:59:29 -0000 1.57 +++ SerializationContextImpl.java 20 Aug 2002 02:13:13 -0000 1.58 @@ -461,9 +461,13 @@ prefix = getPrefixForURI(qName.getNamespaceURI()); } - return (((prefix != null) && (!prefix.equals(""))) ? - prefix + ":" : "") + - qName.getLocalPart(); + if ((prefix == null) || (prefix.length() == 0)) + return qName.getLocalPart(); + + StringBuffer sb = new StringBuffer(prefix); + sb.append(':'); + sb.append(qName.getLocalPart()); + return sb.toString(); } public String qName2String(QName qName)