commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1775929 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterLossless.java
Date Fri, 23 Dec 2016 23:25:14 GMT
Author: ggregory
Date: Fri Dec 23 23:25:14 2016
New Revision: 1775929

URL: http://svn.apache.org/viewvc?rev=1775929&view=rev
Log:
Format.

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterLossless.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterLossless.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterLossless.java?rev=1775929&r1=1775928&r2=1775929&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterLossless.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffImageWriterLossless.java
Fri Dec 23 23:25:14 2016
@@ -299,8 +299,7 @@ public class TiffImageWriterLossless ext
         final byte[] output = new byte[(int) outputLength];
 
         // copy old data (including maker notes, etc.)
-        System.arraycopy(exifBytes, 0, output, 0,
-                Math.min(exifBytes.length, output.length));
+        System.arraycopy(exifBytes, 0, output, 0, Math.min(exifBytes.length, output.length));
 
         final BufferOutputStream headerStream = new BufferOutputStream(output, 0);
         final BinaryOutputStream headerBinaryStream = new BinaryOutputStream(headerStream,
byteOrder);
@@ -309,14 +308,13 @@ public class TiffImageWriterLossless ext
         // zero out the parsed pieces of old exif segment, in case we don't
         // overwrite them.
         for (final TiffElement element : analysis) {
-            Arrays.fill(output, (int)element.offset,
-                    (int)Math.min(element.offset + element.length, output.length), (byte)0);
+            Arrays.fill(output, (int) element.offset, (int) Math.min(element.offset + element.length,
output.length),
+                    (byte) 0);
         }
 
         // write in the new items
         for (final TiffOutputItem outputItem : outputItems) {
-            final BufferOutputStream tos = new BufferOutputStream(output,
-                    (int) outputItem.getOffset());
+            final BufferOutputStream tos = new BufferOutputStream(output, (int) outputItem.getOffset());
             final BinaryOutputStream bos = new BinaryOutputStream(tos, byteOrder);
             outputItem.writeItem(bos);
         }



Mime
View raw message