You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by to...@apache.org on 2007/07/26 03:06:47 UTC

svn commit: r559664 - /harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Timestamp.java

Author: tonywu
Date: Wed Jul 25 18:06:46 2007
New Revision: 559664

URL: http://svn.apache.org/viewvc?view=rev&rev=559664
Log:
Apply patch HARMONY-4530 ([classlib][sql][java6] some methods' signature is different which spec in java.sql.Timestamp)

Modified:
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Timestamp.java

Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Timestamp.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Timestamp.java?view=diff&rev=559664&r1=559663&r2=559664
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Timestamp.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Timestamp.java Wed Jul 25 18:06:46 2007
@@ -73,8 +73,7 @@
     @SuppressWarnings("deprecation")
     @Deprecated
     public Timestamp(int theYear, int theMonth, int theDate, int theHour,
-            int theMinute, int theSecond, int theNano)
-            throws IllegalArgumentException {
+            int theMinute, int theSecond, int theNano) {
         super(theYear, theMonth, theDate, theHour, theMinute, theSecond);
         if (theNano < 0 || theNano > 999999999) {
             throw new IllegalArgumentException();
@@ -176,7 +175,7 @@
      *             if the supplied object is not a Timestamp object
      */
     @Override
-    public int compareTo(Date theObject) throws ClassCastException {
+    public int compareTo(Date theObject) {
         return this.compareTo((Timestamp) theObject);
     }
 
@@ -264,7 +263,7 @@
     /**
      * Sets the nanosecond value for this timestamp
      */
-    public void setNanos(int n) throws IllegalArgumentException {
+    public void setNanos(int n) {
         if ((n < 0) || (n > 999999999)) {
             // sql.0=Value out of range
             throw new IllegalArgumentException(Messages.getString("sql.0")); //$NON-NLS-1$
@@ -377,7 +376,7 @@
      * @return A timestamp object with time value as defined by the supplied
      *         String
      */
-    public static Timestamp valueOf(String s) throws IllegalArgumentException {
+    public static Timestamp valueOf(String s) {
         if (s == null) {
             // sql.3=Argument cannot be null
             throw new IllegalArgumentException(Messages.getString("sql.3")); //$NON-NLS-1$