changeset 20811:6b25b85f10fd

8017287: Better resource disposal Reviewed-by: prr, vadim, skoivu
author bae
date Mon, 01 Jul 2013 15:17:24 +0400
parents b464ed57d001
children 16a6de786164
files jdk/src/share/classes/sun/java2d/Disposer.java
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/sun/java2d/Disposer.java	Thu Jun 27 10:37:08 2013 +0100
+++ b/jdk/src/share/classes/sun/java2d/Disposer.java	Mon Jul 01 15:17:24 2013 +0400
@@ -155,8 +155,7 @@
                 rec = null;
                 clearDeferredRecords();
             } catch (Exception e) {
-                System.out.println("Exception while removing reference: " + e);
-                e.printStackTrace();
+                System.out.println("Exception while removing reference.");
             }
         }
     }
@@ -182,7 +181,6 @@
                 rec.dispose();
             } catch (Exception e) {
                 System.out.println("Exception while disposing deferred rec.");
-                e.printStackTrace();
             }
         }
         deferredRecords.clear();
@@ -233,8 +231,7 @@
                 }
             }
         } catch (Exception e) {
-            System.out.println("Exception while removing reference: " + e);
-            e.printStackTrace();
+            System.out.println("Exception while removing reference.");
         } finally {
             pollingQueue = false;
         }