You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by st...@apache.org on 2003/04/17 22:20:07 UTC

cvs commit: xml-axis/java/src/org/apache/axis/encoding/ser/castor CastorDeserializer.java

stevel      2003/04/17 13:20:07

  Modified:    java/src/org/apache/axis/encoding/ser/castor
                        CastorDeserializer.java
  Log:
  I'm committing this because I know that almost nobody uses it *and* we dont even include it in the axis binaries...if douglas bitting has found a fault, he is probably the first person to use it.
  
  Revision  Changes    Path
  1.3       +4 -9      xml-axis/java/src/org/apache/axis/encoding/ser/castor/CastorDeserializer.java
  
  Index: CastorDeserializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/castor/CastorDeserializer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CastorDeserializer.java	11 Dec 2002 22:38:17 -0000	1.2
  +++ CastorDeserializer.java	17 Apr 2003 20:20:07 -0000	1.3
  @@ -98,15 +98,10 @@
   
           try {
               MessageElement msgElem = context.getCurElement();
  -            if (msgElem != null) {
  -                ArrayList children = msgElem.getChildren();
  -                if (children != null) {
  -                    msgElem = (MessageElement) children.get(0);
  -                    if (msgElem != null) {
  -                        // Unmarshall the nested XML element into a castor object of type 'javaType'
  -                        value = Unmarshaller.unmarshal(javaType, msgElem.getAsDOM());
  -                    }
  -                }
  +            if (msgElem != null)
  +            {
  +                // Unmarshall the nested XML element into a castor object of type 'javaType'
  +                value = Unmarshaller.unmarshal(javaType, msgElem.getAsDOM());
               }
           } catch (MarshalException me) {
               log.error(Messages.getMessage("castorMarshalException00"), me);