Title: [waffle-scm] [332] trunk/core/src/main/java/org/codehaus/waffle/monitor: Re-styled.
Revision
332
Author
mauro
Date
2007-11-03 06:01:55 -0500 (Sat, 03 Nov 2007)

Log Message

Re-styled.

Modified Paths


Diff

Modified: trunk/core/src/main/java/org/codehaus/waffle/monitor/CommonsLoggingMonitor.java (331 => 332)

--- trunk/core/src/main/java/org/codehaus/waffle/monitor/CommonsLoggingMonitor.java	2007-11-02 19:16:12 UTC (rev 331)
+++ trunk/core/src/main/java/org/codehaus/waffle/monitor/CommonsLoggingMonitor.java	2007-11-03 11:01:55 UTC (rev 332)
@@ -23,7 +23,7 @@
     private final Log log;
 
     /**
-     * Creates a default CommonsLoggingMonitor.
+     * Creates the default CommonsLoggingMonitor
      */
     public CommonsLoggingMonitor() {
         this(CommonsLoggingMonitor.class.getName());
@@ -31,7 +31,7 @@
 
     /**
      * Creates a CommonsLoggingMonitor with a given Log instance name. It uses the [EMAIL PROTECTED] LogFactory LogFactory} to
-     * create the Log instance.
+     * create the Log instance
      * 
      * @param logName the name of the Log
      */
@@ -52,20 +52,24 @@
     protected void write(Level level, String message) {
         switch (level) {
             case ERROR:
-                if (log.isErrorEnabled())
+                if (log.isErrorEnabled()) {
                     log.error(message);
+                }
                 break;
             case INFO:
-                if (log.isInfoEnabled())
+                if (log.isInfoEnabled()) {
                     log.info(message);
+                }
                 break;
             case WARN:
-                if (log.isWarnEnabled())
+                if (log.isWarnEnabled()) {
                     log.warn(message);
+                }
                 break;
             case DEBUG:
-                if (log.isDebugEnabled())
+                if (log.isDebugEnabled()) {
                     log.debug(message);
+                }
                 break;
         }
     }

Modified: trunk/core/src/main/java/org/codehaus/waffle/monitor/SilentMonitor.java (331 => 332)

--- trunk/core/src/main/java/org/codehaus/waffle/monitor/SilentMonitor.java	2007-11-02 19:16:12 UTC (rev 331)
+++ trunk/core/src/main/java/org/codehaus/waffle/monitor/SilentMonitor.java	2007-11-03 11:01:55 UTC (rev 332)
@@ -10,8 +10,6 @@
  *****************************************************************************/
 package org.codehaus.waffle.monitor;
 
-
-
 /**
  * SilentMonitor is a writing monitor that writes nothing.
  * 


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to