JDK 9 RFR of JDK-8066643: (zipfs) Suppress deprecation warnings in jdk.zipfs module
joe darcy
joe.darcy at oracle.com
Mon Dec 8 06:24:07 UTC 2014
Hello,
Please review the simple patch below to fix
JDK-8066643: (zipfs) Suppress deprecation warnings in jdk.zipfs
module
Thanks,
-Joe
diff -r 913808eaf19a src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipUtils.java
--- a/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipUtils.java Mon Nov
10 08:43:27 2014 -0800
+++ b/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipUtils.java Sun Dec
07 22:22:51 2014 -0800
@@ -103,6 +103,7 @@
/*
* Converts DOS time to Java time (number of milliseconds since
epoch).
*/
+ @SuppressWarnings("deprecation")
public static long dosToJavaTime(long dtime) {
Date d = new Date((int)(((dtime >> 25) & 0x7f) + 80),
(int)(((dtime >> 21) & 0x0f) - 1),
@@ -116,6 +117,7 @@
/*
* Converts Java time to DOS time.
*/
+ @SuppressWarnings("deprecation")
public static long javaToDosTime(long time) {
Date d = new Date(time);
int year = d.getYear() + 1900;
More information about the core-libs-dev
mailing list