JDK 9 RFR of JDK-8066643: (zipfs) Suppress deprecation warnings in jdk.zipfs module

Lance @ Oracle lance.andersen at oracle.com
Mon Dec 8 11:24:05 UTC 2014


+1


Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com
Sent from my iPad

> On Dec 8, 2014, at 1:24 AM, joe darcy <joe.darcy at 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;
> 



More information about the core-libs-dev mailing list