logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1587415 - /logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/util/Profiler.java
Date Tue, 15 Apr 2014 04:59:12 GMT
Author: mattsicker
Date: Tue Apr 15 04:59:12 2014
New Revision: 1587415

URL: http://svn.apache.org/r1587415
Log:
Make this a utility class.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/util/Profiler.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/util/Profiler.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/util/Profiler.java?rev=1587415&r1=1587414&r2=1587415&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/util/Profiler.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/util/Profiler.java
Tue Apr 15 04:59:12 2014
@@ -19,9 +19,9 @@ package org.apache.logging.log4j.core.ut
 import java.lang.reflect.Field;
 
 /**
- *
+ * YourKit Java Profiler helper class.
  */
-public class Profiler {
+public final class Profiler {
     private static Object profiler;
     private static Class<?> profilingModes;
     private static Class<?> controllerClazz;
@@ -43,6 +43,9 @@ public class Profiler {
 
     }
 
+    private Profiler() {
+    }
+
     public static boolean isActive() {
         return profiler != null;
     }



Mime
View raw message