You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/04/02 23:23:05 UTC

svn commit: r1088126 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java

Author: simonetripodi
Date: Sat Apr  2 21:23:04 2011
New Revision: 1088126

URL: http://svn.apache.org/viewvc?rev=1088126&view=rev
Log:
removed trailing spaces

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java?rev=1088126&r1=1088125&r2=1088126&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java (original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java Sat Apr  2 21:23:04 2011
@@ -30,16 +30,16 @@ import org.apache.commons.logging.LogFac
  * <p>Simple implementation of Log that sends all enabled log messages,
  * for all defined loggers, to System.err.
  * </p>
- * 
+ *
  * <p>Hacked from commons-logging SimpleLog for use in discovery.
  * This is intended to be enough of a Log implementation to bootstrap
  * Discovery.
  * </p>
- * 
+ *
  * <p>One property: <code>org.apache.commons.discovery.log.level</code>.
  * valid values: all, trace, debug, info, warn, error, fatal, off.
  * </p>
- * 
+ *
  * @author Richard A. Sitze
  * @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
  * @author Rod Waldhoff
@@ -58,7 +58,7 @@ public class DiscoveryLogFactory {
     private static Log log = DiscoveryLogFactory._newLog(DiscoveryLogFactory.class);
 
     /**
-     */    
+     */
     public static Log newLog(Class<?> clazz) {
         /**
          * Required to implement 'public static void setLog(Log)'
@@ -68,7 +68,7 @@ public class DiscoveryLogFactory {
                                                               void.class,
                                                               "setLog",
                                                               setLogParamClasses);
-            
+
             if (setLog == null) {
                 String msg = "Internal Error: " + clazz.getName() + " required to implement 'public static void setLog(Log)'";
                 log.fatal(msg);
@@ -96,7 +96,7 @@ public class DiscoveryLogFactory {
                ? new SimpleLog(clazz.getName())
                : logFactory.getInstance(clazz.getName());
     }
-    
+
     public static void setLog(Log _log) {
         log = _log;
     }
@@ -108,15 +108,15 @@ public class DiscoveryLogFactory {
         if (logFactory == null) {
             // for future generations.. if any
             logFactory = factory;
-            
+
             // now, go back and reset loggers for all current classes..
             for (Class<?> clazz : classRegistry.values()) {
 
                 if (log.isDebugEnabled())
                     log.debug("Reset Log for: " + clazz.getName());
-                
+
                 Method setLog = null;
-                
+
                 // invoke 'setLog(Log)'.. we already know it's 'public static',
                 // have verified parameters, and return type..
                 try {
@@ -126,9 +126,9 @@ public class DiscoveryLogFactory {
                     log.fatal(msg, e);
                     throw new DiscoveryException(msg, e);
                 }
-    
+
                 Object[] setLogParam = new Object[] { factory.getInstance(clazz.getName()) };
-                
+
                 try {
                     setLog.invoke(null, setLogParam);
                 } catch(Exception e) {