pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1652305 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/printing/PDFPrinter.java
Date Thu, 15 Jan 2015 23:05:33 GMT
Author: tilman
Date: Thu Jan 15 23:05:33 2015
New Revision: 1652305

URL: http://svn.apache.org/r1652305
Log:
PDFBOX-2576: remove unchecked exceptions

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/printing/PDFPrinter.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/printing/PDFPrinter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/printing/PDFPrinter.java?rev=1652305&r1=1652304&r2=1652305&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/printing/PDFPrinter.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/printing/PDFPrinter.java Thu Jan 15
23:05:33 2015
@@ -294,7 +294,7 @@ public class PDFPrinter
         }
 
         @Override
-        public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException
+        public PageFormat getPageFormat(int pageIndex)
         {
             // note: PDFPrintable#print() is responsible for fitting the current page to
             //       the printer's actual paper size, so this method must return the full
@@ -335,11 +335,11 @@ public class PDFPrinter
         }
 
         @Override
-        public Printable getPrintable(int i) throws IndexOutOfBoundsException
+        public Printable getPrintable(int i)
         {
             if (i >= getNumberOfPages())
             {
-                throw new IndexOutOfBoundsException(i + " >= " +  getNumberOfPages());
+                throw new IndexOutOfBoundsException(i + " >= " + getNumberOfPages());
             }
             return new PDFPrintable();
         }



Mime
View raw message