pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1612868 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java
Date Wed, 23 Jul 2014 16:36:37 GMT
Author: tilman
Date: Wed Jul 23 16:36:36 2014
New Revision: 1612868

URL: http://svn.apache.org/r1612868
Log:
PDFBOX-2236: use method supported in JDK5

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java?rev=1612868&r1=1612867&r2=1612868&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSignDesigner.java
Wed Jul 23 16:36:36 2014
@@ -316,7 +316,8 @@ public class PDVisibleSignDesigner
         baos.close();
 
         byte[] byteArray = baos.toByteArray();
-        byte[] byteArraySecond = Arrays.copyOf(byteArray, byteArray.length);
+        byte[] byteArraySecond = new byte[byteArray.length];
+        System.arraycopy(byteArray, 0, byteArraySecond, 0, byteArray.length);
 
         InputStream inputForBufferedImage = new ByteArrayInputStream(byteArray);
         InputStream revertInputStream = new ByteArrayInputStream(byteArraySecond);



Mime
View raw message