You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by sn...@apache.org on 2002/10/04 15:34:17 UTC

cvs commit: xml-soap/java/src/org/apache/soap/util/xml XMLJavaMappingRegistry.java

snichol     2002/10/04 06:34:17

  Modified:    java/src/org/apache/soap/util/xml
                        XMLJavaMappingRegistry.java
  Log:
  Submitted by: Pavel Ausianik <Pa...@epam.com>
  Reviewed by: Scott Nichol
  Refer to: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12724
  
  org.apache.soap.util.xml.XMLJavaMappingRegistry.getKey function causes
  unnecessary memory allocations
  
  Revision  Changes    Path
  1.8       +2 -1      xml-soap/java/src/org/apache/soap/util/xml/XMLJavaMappingRegistry.java
  
  Index: XMLJavaMappingRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/xml/XMLJavaMappingRegistry.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XMLJavaMappingRegistry.java	28 Jun 2001 21:04:04 -0000	1.7
  +++ XMLJavaMappingRegistry.java	4 Oct 2002 13:34:17 -0000	1.8
  @@ -316,7 +316,8 @@
   
     private static String getKey(Object type, String encodingStyleURI)
     {
  -    return type + " + " + encodingStyleURI;
  +    String strObj = String.valueOf(type);
  +    return new StringBuffer(strObj.length() + 3 + encodingStyleURI.length()).append(strObj).append(" + ").append(encodingStyleURI).toString();
     }
   
     protected static String getClassName(Class javaType)
  
  
  

--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>