axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding SerializationContextImpl.java
Date Tue, 20 Aug 2002 02:13:13 GMT
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)
  
  
  

Mime
View raw message