db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r980460 - in /db/derby/code/trunk/java/stubs/jdbc4/java/sql: Date.java Time.java
Date Thu, 29 Jul 2010 14:55:21 GMT
Author: kahatlen
Date: Thu Jul 29 14:55:20 2010
New Revision: 980460

URL: http://svn.apache.org/viewvc?rev=980460&view=rev
Log:
DERBY-4756: Silence deprecation warnings for JDBC 4 stubs

Modified:
    db/derby/code/trunk/java/stubs/jdbc4/java/sql/Date.java
    db/derby/code/trunk/java/stubs/jdbc4/java/sql/Time.java

Modified: db/derby/code/trunk/java/stubs/jdbc4/java/sql/Date.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/stubs/jdbc4/java/sql/Date.java?rev=980460&r1=980459&r2=980460&view=diff
==============================================================================
--- db/derby/code/trunk/java/stubs/jdbc4/java/sql/Date.java (original)
+++ db/derby/code/trunk/java/stubs/jdbc4/java/sql/Date.java Thu Jul 29 14:55:20 2010
@@ -22,11 +22,17 @@ public  class   Date    extends java.uti
     public  Date(int year, int month, int day) {}
     public  Date(long date) {}
 
+    @Deprecated
     public  int 	getHours()  { return 0; }
+    @Deprecated
     public  int 	getMinutes()    { return 0; }
+    @Deprecated
     public  int 	getSeconds()    { return 0; }
+    @Deprecated
     public  void 	setHours(int i) {  }
+    @Deprecated
     public  void 	setMinutes(int i)   { }
+    @Deprecated
     public  void 	setSeconds(int i)   { }
     public  void 	setTime(long date)  {  }
     public  String 	toString()  { return null; }

Modified: db/derby/code/trunk/java/stubs/jdbc4/java/sql/Time.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/stubs/jdbc4/java/sql/Time.java?rev=980460&r1=980459&r2=980460&view=diff
==============================================================================
--- db/derby/code/trunk/java/stubs/jdbc4/java/sql/Time.java (original)
+++ db/derby/code/trunk/java/stubs/jdbc4/java/sql/Time.java Thu Jul 29 14:55:20 2010
@@ -22,13 +22,20 @@ public  class   Time    extends java.uti
     public  Time(int hour, int minute, int second)  {}
     public  Time(long time) {}
 
+    @Deprecated
     public  int 	getDate() { return 0; }
+    @Deprecated
     public  int 	getDay() { return 0; }
+    @Deprecated
     public  int 	getMonth() { return 0; }
+    @Deprecated
     public  int 	getYear() { return 0; }
+    @Deprecated
     public  void 	setDate(int i) {  }
+    @Deprecated
     public  void 	setMonth(int i) {  }
     public  void 	setTime(long time) {  }
+    @Deprecated
     public  void 	setYear(int i) {  }
     public  String 	toString() { return null; }
     public  static Time 	valueOf(String s) { return null; }



Mime
View raw message