From 9ae7f88de951aab090a4850f122c553439b8a331 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 09 Jul 2013 12:04:02 +0000
Subject: [PATCH] Fixed typo.
---
opends/src/server/org/opends/server/loggers/debug/DebugTracer.java | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/opends/src/server/org/opends/server/loggers/debug/DebugTracer.java b/opends/src/server/org/opends/server/loggers/debug/DebugTracer.java
index 0194cea..d17ae98 100644
--- a/opends/src/server/org/opends/server/loggers/debug/DebugTracer.java
+++ b/opends/src/server/org/opends/server/loggers/debug/DebugTracer.java
@@ -52,7 +52,7 @@
public class DebugTracer
{
- // The class this aspect traces.
+ /** The class this aspect traces. */
private String className;
/**
@@ -65,7 +65,7 @@
Map<String, TraceSettings> methodSettings;
}
- PublisherSettings[] publisherSettings;
+ private PublisherSettings[] publisherSettings;
/**
* Construct a new DebugTracer object with cached settings obtained from
@@ -73,7 +73,7 @@
*
* @param publishers The array of publishers to obtain the settings from.
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({ "unchecked", "rawtypes" })
DebugTracer(DebugLogPublisher[] publishers)
{
// Trim off the debug logging and non OpenDS frames.
@@ -743,7 +743,7 @@
}
/**
- * Log an cought exception.
+ * Log a caught exception.
*
* @param level the level of the log message.
* @param ex the exception caught.
@@ -1107,7 +1107,7 @@
*
* @param publishers The array of publishers to obtain the settings from.
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({ "unchecked", "rawtypes" })
void updateSettings(DebugLogPublisher[] publishers)
{
PublisherSettings[] newSettings =
@@ -1149,9 +1149,8 @@
{
// Skip leading frames debug logging classes and getStackTrace
// method call frame if any.
- for (int i = 0; i < stackTrace.length; i++)
+ for (StackTraceElement aStackTrace : stackTrace)
{
- StackTraceElement aStackTrace = stackTrace[i];
if(aStackTrace.getClassName().startsWith("java.lang.Thread"))
{
continue;
--
Gitblit v1.10.0