felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r1096435 - /felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/util/Logger.java
Date Mon, 25 Apr 2011 09:07:14 GMT
Author: clement
Date: Mon Apr 25 09:07:14 2011
New Revision: 1096435

URL: http://svn.apache.org/viewvc?rev=1096435&view=rev
Log:
Removed tabs

Modified:
    felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/util/Logger.java

Modified: felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/util/Logger.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/util/Logger.java?rev=1096435&r1=1096434&r2=1096435&view=diff
==============================================================================
--- felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/util/Logger.java (original)
+++ felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/util/Logger.java Mon Apr 25
09:07:14 2011
@@ -108,7 +108,7 @@ public class Logger {
      */
     public Logger(BundleContext context, ComponentInstance instance, int level) {
         m_instance = instance;
-    	m_name = m_instance.getInstanceName();
+        m_name = m_instance.getInstanceName();
         m_level = level;
         m_context = context;
     }
@@ -184,7 +184,7 @@ public class Logger {
         String message = null;
         String name = m_name;
         if (name == null) {
-        	name = "";
+            name = "";
         }
 
         switch (level) {
@@ -258,7 +258,7 @@ public class Logger {
         String message = null;
         String name = m_name;
         if (name == null) {
-        	name = "";
+            name = "";
         }
 
         switch (level) {
@@ -317,27 +317,27 @@ public class Logger {
      * @param error the error
      */
     private void invokeErrorHandler(int level, String msg, Throwable error) {
-    	// First check the level
-    	if (level > WARNING) {
-    		return; // Others levels are not supported.
-    	}
-    	// Try to get the error handler service
-    	try {
-	    	ServiceReference ref = m_context.getServiceReference(ErrorHandler.class.getName());
-	    	if (ref != null) {
-	    		ErrorHandler handler = (ErrorHandler) m_context.getService(ref);
-	    		if (level == ERROR) {
-	        		handler.onError(m_instance, msg, error);
-	        	} else if (level == WARNING) {
-	        		handler.onWarning(m_instance, msg, error);
-	        	} // The others case are not supported
-	    		m_context.ungetService(ref);
-	    		return;
-	    	} // Else do nothing...
-    	} catch (IllegalStateException e) {
-    		// Ignore
-    		// The iPOJO bundle is stopping.
-    	}
+        // First check the level
+        if (level > WARNING) {
+            return; // Others levels are not supported.
+        }
+        // Try to get the error handler service
+        try {
+            ServiceReference ref = m_context.getServiceReference(ErrorHandler.class.getName());
+            if (ref != null) {
+                ErrorHandler handler = (ErrorHandler) m_context.getService(ref);
+                if (level == ERROR) {
+                    handler.onError(m_instance, msg, error);
+                } else if (level == WARNING) {
+                    handler.onWarning(m_instance, msg, error);
+                } // The others case are not supported
+                m_context.ungetService(ref);
+                return;
+            } // Else do nothing...
+        } catch (IllegalStateException e) {
+            // Ignore
+            // The iPOJO bundle is stopping.
+        }
     }
 
     /**



Mime
View raw message