pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1791982 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/DCTFilter.java
Date Wed, 19 Apr 2017 21:26:46 GMT
Author: tilman
Date: Wed Apr 19 21:26:46 2017
New Revision: 1791982

URL: http://svn.apache.org/viewvc?rev=1791982&view=rev
Log:
PDFBOX-2852: use JDK7 syntax

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/DCTFilter.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/DCTFilter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/DCTFilter.java?rev=1791982&r1=1791981&r2=1791982&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/DCTFilter.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/DCTFilter.java Wed Apr 19 21:26:46
2017
@@ -135,12 +135,7 @@ final class DCTFilter extends Filter
                                 throw new IOException("Unexpected color space: " + colorSpaceCode);
                         }
                     }
-                    catch (NoSuchFieldException e1)
-                    {
-                        // error from non-Sun JPEG decoder
-                        throw e;
-                    }
-                    catch (IllegalAccessException e1)
+                    catch (NoSuchFieldException | IllegalAccessException e1)
                     {
                         // error from non-Sun JPEG decoder
                         throw e;



Mime
View raw message