+1
Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037 Oracle Java Engineering 1 Network Drive Burlington, MA 01803 lance.ander...@oracle.com Sent from my iPad > On Dec 8, 2014, at 1:24 AM, joe darcy <joe.da...@oracle.com> wrote: > > 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; >