--- a/jdk/src/share/classes/java/util/zip/ZipEntry.java Tue Dec 06 10:14:02 2011 -0800
+++ b/jdk/src/share/classes/java/util/zip/ZipEntry.java Wed Dec 07 12:12:50 2011 -0800
@@ -281,6 +281,7 @@
* Converts DOS time to Java time (number of milliseconds since epoch).
*/
private static long dosToJavaTime(long dtime) {
+ @SuppressWarnings("deprecation") // Use of date constructor.
Date d = new Date((int)(((dtime >> 25) & 0x7f) + 80),
(int)(((dtime >> 21) & 0x0f) - 1),
(int)((dtime >> 16) & 0x1f),
@@ -293,6 +294,7 @@
/*
* Converts Java time to DOS time.
*/
+ @SuppressWarnings("deprecation") // Use of date methods
private static long javaToDosTime(long time) {
Date d = new Date(time);
int year = d.getYear() + 1900;