commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r911441 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java
Date Thu, 18 Feb 2010 15:31:48 GMT
Author: bodewig
Date: Thu Feb 18 15:31:47 2010
New Revision: 911441

URL: http://svn.apache.org/viewvc?rev=911441&view=rev
Log:
now that the copy method is there ...

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java?rev=911441&r1=911440&r2=911441&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipUtil.java
Thu Feb 18 15:31:47 2010
@@ -54,7 +54,7 @@
 
         int year = c.get(Calendar.YEAR);
         if (year < 1980) {
-            return (byte[]) DOS_TIME_MIN.clone(); // stop callers from changing the array
+            return copy(DOS_TIME_MIN); // stop callers from changing the array
         }
         int month = c.get(Calendar.MONTH) + 1;
         long value =  ((year - 1980) << 25)



Mime
View raw message