axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding DeserializerImpl.java SerializationContextImpl.java
Date Thu, 21 Feb 2002 19:35:37 GMT
scheu       02/02/21 11:35:37

  Modified:    java/src/org/apache/axis/encoding DeserializerImpl.java
                        SerializationContextImpl.java
  Log:
  free value targets after processing them
  
  Revision  Changes    Path
  1.3       +3 -0      xml-axis/java/src/org/apache/axis/encoding/DeserializerImpl.java
  
  Index: DeserializerImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/DeserializerImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DeserializerImpl.java	19 Feb 2002 17:38:19 -0000	1.2
  +++ DeserializerImpl.java	21 Feb 2002 19:35:37 -0000	1.3
  @@ -230,6 +230,9 @@
                                                               "" + value, "" + target));
                       }
                   }
  +                // Don't need targets any more, so clear them
  +                targets.clear();
  +                targets = null;
               }
           }
       }
  
  
  
  1.8       +6 -6      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SerializationContextImpl.java	21 Feb 2002 04:28:26 -0000	1.7
  +++ SerializationContextImpl.java	21 Feb 2002 19:35:37 -0000	1.8
  @@ -805,15 +805,15 @@
        * @return Serializer
        */
       public final Serializer getSerializerForJavaType(Class javaType) {
  -        SerializerFactory dserF = null;
  -        Serializer dser = null;
  -        try {
  -            dserF = (SerializerFactory) getTypeMapping().getSerializer(javaType);
  +        SerializerFactory serF = null;
  +        Serializer ser = null;
  +        try { 
  +            serF = (SerializerFactory) getTypeMapping().getSerializer(javaType);
           } catch (JAXRPCException e) {
           }
  -        if (dserF != null) {
  +        if (serF != null) {
               try {
  -                dser = (Serializer) dserF.getSerializerAs(Constants.AXIS_SAX);
  +                ser = (Serializer) serF.getSerializerAs(Constants.AXIS_SAX);
               } catch (JAXRPCException e) {}
           }
           return null;
  
  
  

Mime
View raw message