You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2013/11/25 15:08:03 UTC

svn commit: r1545291 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java

Author: ebourg
Date: Mon Nov 25 14:08:03 2013
New Revision: 1545291

URL: http://svn.apache.org/r1545291
Log:
Unnecessary explicit array creation

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java?rev=1545291&r1=1545290&r2=1545291&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java Mon Nov 25 14:08:03 2013
@@ -235,8 +235,7 @@ public class JpegIptcRewriter extends Jp
             final JFIFPieceSegment newSegment = new JFIFPieceSegment(
                     JpegConstants.JPEG_APP13_Marker, segmentBytes);
 
-            newPieces = insertAfterLastAppSegments(newPieces,
-                    Arrays.asList(new JFIFPieceSegment[] { newSegment, }));
+            newPieces = insertAfterLastAppSegments(newPieces, Arrays.asList(newSegment));
         }
 
         writeSegments(os, newPieces);