pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1778756 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java
Date Sat, 14 Jan 2017 11:58:07 GMT
Author: lehmi
Date: Sat Jan 14 11:58:07 2017
New Revision: 1778756

URL: http://svn.apache.org/viewvc?rev=1778756&view=rev
Log:
PDFBOX-3644: replaced >= java7 exception

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java?rev=1778756&r1=1778755&r2=1778756&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/PrintURLs.java
Sat Jan 14 11:58:07 2017
@@ -19,6 +19,7 @@ package org.apache.pdfbox.examples.pdmod
 import java.awt.geom.Rectangle2D;
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.util.List;
 
@@ -146,7 +147,13 @@ public final class PrintURLs
                 }
             }
         }
-        catch (ReflectiveOperationException ex)
+        catch (NoSuchMethodException e)
+        {
+        }
+        catch (IllegalAccessException e)
+        {
+        }
+        catch (InvocationTargetException e)
         {
         }
         return null;



Mime
View raw message