axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r724306 - in /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding: types/Time.java utils/ConverterUtil.java
Date Mon, 08 Dec 2008 10:49:23 GMT
Author: amilas
Date: Mon Dec  8 02:49:22 2008
New Revision: 724306

URL: http://svn.apache.org/viewvc?rev=724306&view=rev
Log:
use long instead of int to accomadate lager values

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java?rev=724306&r1=724305&r2=724306&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/types/Time.java
Mon Dec  8 02:49:22 2008
@@ -104,7 +104,7 @@
         int hour = 0;
         int minite = 0;
         int second = 0;
-        int miliSecond = 0;
+        long miliSecond = 0;
 
         int timeZoneOffSet = TimeZone.getDefault().getRawOffset();
          int milliSecondPartLength = 0;
@@ -195,7 +195,7 @@
                 miliSecond = miliSecond / 10;
             }
         }
-        calendar.set(Calendar.MILLISECOND, miliSecond);
+        calendar.set(Calendar.MILLISECOND, (int)miliSecond);
         calendar.set(Calendar.ZONE_OFFSET, timeZoneOffSet);
         calendar.set(Calendar.DST_OFFSET, 0);
 

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?rev=724306&r1=724305&r2=724306&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Mon Dec  8 02:49:22 2008
@@ -883,7 +883,7 @@
         int hour = 0;
         int minite = 0;
         int second = 0;
-        int miliSecond = 0;
+        long miliSecond = 0;
         int timeZoneOffSet = TimeZone.getDefault().getRawOffset();
 
 
@@ -983,7 +983,7 @@
                     miliSecond = miliSecond / 10;
                 }
             }
-            calendar.set(Calendar.MILLISECOND, miliSecond);
+            calendar.set(Calendar.MILLISECOND, (int)miliSecond);
             calendar.set(Calendar.ZONE_OFFSET, timeZoneOffSet);
             calendar.set(Calendar.DST_OFFSET, 0);
 



Mime
View raw message