pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1787436 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
Date Fri, 17 Mar 2017 16:20:03 GMT
Author: tilman
Date: Fri Mar 17 16:20:03 2017
New Revision: 1787436

URL: http://svn.apache.org/viewvc?rev=1787436&view=rev
Log:
PDFBOX-2852: simplify code

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java?rev=1787436&r1=1787435&r2=1787436&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
Fri Mar 17 16:20:03 2017
@@ -320,8 +320,7 @@ public final class PDImageXObject extend
 
         if (fileType.equals(FileType.JPEG))
         {
-            PDImageXObject imageXObject = JPEGFactory.createFromByteArray(document, byteArray);
-            return imageXObject;
+            return JPEGFactory.createFromByteArray(document, byteArray);
         }
         if (fileType.equals(FileType.TIFF))
         {



Mime
View raw message