changeset 5869:7032137bf627

Fix RT-34635: poolstats prints unnecessary warning messages
author flar <James.Graham@oracle.com>
date Mon, 02 Dec 2013 14:22:10 -0800
parents cc2acc7f4a50
children d84e05a1e95b
files modules/graphics/src/main/java/com/sun/prism/impl/ManagedResource.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/prism/impl/ManagedResource.java	Mon Dec 02 14:12:26 2013 -0800
+++ b/modules/graphics/src/main/java/com/sun/prism/impl/ManagedResource.java	Mon Dec 02 14:22:10 2013 -0800
@@ -242,7 +242,9 @@
         }
 
         if (PrismSettings.poolStats || anyLockedResources) {
-            System.err.println("Outstanding resource locks detected:");
+            if (anyLockedResources) {
+                System.err.println("Outstanding resource locks detected:");
+            }
             ManagedResource.printSummary();
         }
     }