commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r1545291 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/JpegIptcRewriter.java
Date Mon, 25 Nov 2013 14:08:03 GMT
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);



Mime
View raw message