You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/11/17 13:32:29 UTC

svn commit: r1869944 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/printing/Printing.java

Author: tilman
Date: Sun Nov 17 13:32:28 2019
New Revision: 1869944

URL: http://svn.apache.org/viewvc?rev=1869944&view=rev
Log:
PDFBOX-4071: SonarQube fix: remove exception that won't be thrown

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

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/printing/Printing.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/printing/Printing.java?rev=1869944&r1=1869943&r2=1869944&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/printing/Printing.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/printing/Printing.java Sun Nov 17 13:32:28 2019
@@ -68,7 +68,7 @@ public final class Printing
     /**
      * Prints the document at its actual size. This is the recommended way to print.
      */
-    private static void print(PDDocument document) throws IOException, PrinterException
+    private static void print(PDDocument document) throws PrinterException
     {
         PrinterJob job = PrinterJob.getPrinterJob();
         job.setPageable(new PDFPageable(document));
@@ -78,8 +78,7 @@ public final class Printing
     /**
      * Prints using custom PrintRequestAttribute values.
      */
-    private static void printWithAttributes(PDDocument document)
-            throws IOException, PrinterException
+    private static void printWithAttributes(PDDocument document) throws PrinterException
     {
         PrinterJob job = PrinterJob.getPrinterJob();
         job.setPageable(new PDFPageable(document));
@@ -93,7 +92,7 @@ public final class Printing
     /**
      * Prints with a print preview dialog.
      */
-    private static void printWithDialog(PDDocument document) throws IOException, PrinterException
+    private static void printWithDialog(PDDocument document) throws PrinterException
     {
         PrinterJob job = PrinterJob.getPrinterJob();
         job.setPageable(new PDFPageable(document));
@@ -107,8 +106,7 @@ public final class Printing
     /**
      * Prints with a print preview dialog and custom PrintRequestAttribute values.
      */
-    private static void printWithDialogAndAttributes(PDDocument document)
-            throws IOException, PrinterException
+    private static void printWithDialogAndAttributes(PDDocument document) throws PrinterException
     {
         PrinterJob job = PrinterJob.getPrinterJob();
         job.setPageable(new PDFPageable(document));
@@ -143,8 +141,7 @@ public final class Printing
     /**
      * Prints using a custom page size and custom margins.
      */
-    private static void printWithPaper(PDDocument document)
-            throws IOException, PrinterException
+    private static void printWithPaper(PDDocument document) throws PrinterException
     {
         PrinterJob job = PrinterJob.getPrinterJob();
         job.setPageable(new PDFPageable(document));