axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/encoding/ser DateDeserializer.java
Date Mon, 07 Feb 2005 14:48:11 GMT
dims        2005/02/07 06:48:11

  Modified:    java/src/org/apache/axis/encoding/ser DateDeserializer.java
  Log:
  remove extra code from DateDeserializer.
  
  Revision  Changes    Path
  1.14      +6 -10     ws-axis/java/src/org/apache/axis/encoding/ser/DateDeserializer.java
  
  Index: DateDeserializer.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/DateDeserializer.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- DateDeserializer.java	4 Feb 2005 18:10:19 -0000	1.13
  +++ DateDeserializer.java	7 Feb 2005 14:48:11 -0000	1.14
  @@ -84,18 +84,14 @@
               }
               
               // support dates before the Christian era
  -            calendar.setTime((Date)result);
               if (bc) {
  +                calendar.setTime((Date)result);
                   calendar.set(Calendar.ERA, GregorianCalendar.BC);
  -            }
  -
  -            // Extract this from if (bc)
  -            // seems logical that we return a Date or Calendar apart from
  -            // the fact that the value is before christ or not
  -            if(javaType == Date.class) {
  -                result = calendar.getTime();
  -            } else {
  -                result = calendar;
  +                if(javaType == Date.class) {
  +                    result = calendar.getTime();
  +                } else {
  +                    result = calendar;
  +                }
               }
           }
   
  
  
  

Mime
View raw message