tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1479197 - /tomcat/trunk/java/org/apache/tomcat/util/Diagnostics.java
Date Sat, 04 May 2013 22:08:52 GMT
Author: markt
Date: Sat May  4 22:08:52 2013
New Revision: 1479197

URL: http://svn.apache.org/r1479197
Log:
Silence some Eclipse warnings about unused code

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/Diagnostics.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/Diagnostics.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/Diagnostics.java?rev=1479197&r1=1479196&r2=1479197&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/Diagnostics.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/Diagnostics.java Sat May  4 22:08:52 2013
@@ -27,12 +27,12 @@ package org.apache.tomcat.util;
 
 import java.lang.management.ClassLoadingMXBean;
 import java.lang.management.CompilationMXBean;
-import java.lang.management.GarbageCollectorMXBean;
+//import java.lang.management.GarbageCollectorMXBean;
 import java.lang.management.LockInfo;
 import java.lang.management.ManagementFactory;
-import java.lang.management.MemoryMXBean;
-import java.lang.management.MemoryManagerMXBean;
-import java.lang.management.MemoryPoolMXBean;
+//import java.lang.management.MemoryMXBean;
+//import java.lang.management.MemoryManagerMXBean;
+//import java.lang.management.MemoryPoolMXBean;
 import java.lang.management.MonitorInfo;
 import java.lang.management.OperatingSystemMXBean;
 import java.lang.management.RuntimeMXBean;
@@ -40,7 +40,7 @@ import java.lang.management.ThreadInfo;
 import java.lang.management.ThreadMXBean;
 import java.text.SimpleDateFormat;
 import java.util.Date;
-import java.util.List;
+//import java.util.List;
 import java.util.Map;
 import java.util.logging.LogManager;
 import java.util.logging.LoggingMXBean;
@@ -76,6 +76,8 @@ public class Diagnostics {
     // dynamically in the MBeanServer.
     private static final LoggingMXBean loggingMXBean =
         LogManager.getLoggingMXBean();
+    // TODO - Use these
+    /*
     private static final MemoryMXBean memoryMXBeans =
         ManagementFactory.getMemoryMXBean();
     private static final List<GarbageCollectorMXBean> garbageCollectorMXBean =
@@ -84,6 +86,7 @@ public class Diagnostics {
         ManagementFactory.getMemoryManagerMXBeans();
     private static final List<MemoryPoolMXBean> memoryPoolMXBeans =
         ManagementFactory.getMemoryPoolMXBeans();
+    */
 
     /**
      * Check whether thread contention monitoring is enabled.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message