JDK 9 RFR of JDK-8066643: (zipfs) Suppress deprecation warnings in jdk.zipfs module
Xueming Shen
xueming.shen at oracle.com
Mon Dec 8 16:50:49 UTC 2014
looks fine.
On 12/7/14 10:24 PM, joe darcy 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