8044694: Fix finally lint warnings in sun.print
authordarcy
Tue, 03 Jun 2014 12:32:25 -0700
changeset 25125 1195f75805bf
parent 25124 31172131ce0c
child 25126 112171727d16
8044694: Fix finally lint warnings in sun.print Reviewed-by: prr
jdk/src/share/classes/sun/print/PSPrinterJob.java
jdk/src/solaris/classes/sun/print/UnixPrintJob.java
--- a/jdk/src/share/classes/sun/print/PSPrinterJob.java	Tue Jun 03 21:03:35 2014 +0400
+++ b/jdk/src/share/classes/sun/print/PSPrinterJob.java	Tue Jun 03 12:32:25 2014 -0700
@@ -708,8 +708,8 @@
                     }
                 } finally {
                     pw.flush();
-                    throw new IOException(sw.toString());
                 }
+                throw new IOException(sw.toString());
             }
         }
 
--- a/jdk/src/solaris/classes/sun/print/UnixPrintJob.java	Tue Jun 03 21:03:35 2014 +0400
+++ b/jdk/src/solaris/classes/sun/print/UnixPrintJob.java	Tue Jun 03 12:32:25 2014 -0700
@@ -992,8 +992,8 @@
                     }
                 } finally {
                     pw.flush();
-                    throw new IOException(sw.toString());
                 }
+                throw new IOException(sw.toString());
             }
         }