pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1791020 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java
Date Tue, 11 Apr 2017 19:59:30 GMT
Author: tilman
Date: Tue Apr 11 19:59:30 2017
New Revision: 1791020

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

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java?rev=1791020&r1=1791019&r2=1791020&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java
Tue Apr 11 19:59:30 2017
@@ -91,11 +91,7 @@ public class PDFMergerExample
 
             return new ByteArrayInputStream(mergedPDFOutputStream.toByteArray());
         }
-        catch (BadFieldValueException e)
-        {
-            throw new IOException("PDF merge problem", e);
-        }
-        catch (TransformerException e)
+        catch (BadFieldValueException | TransformerException e)
         {
             throw new IOException("PDF merge problem", e);
         }



Mime
View raw message