Author: olamy
Date: Mon Oct 15 07:27:13 2012
New Revision: 1398204

URL: http://svn.apache.org/viewvc?rev=1398204&view=rev
Log:
simplify debug code

Modified:
    
archiva/redback/redback-components/trunk/spring-utils/src/main/java/org/apache/archiva/redback/components/springutils/CachingByTypeBeanFactory.java

Modified: 
archiva/redback/redback-components/trunk/spring-utils/src/main/java/org/apache/archiva/redback/components/springutils/CachingByTypeBeanFactory.java
URL: 
http://svn.apache.org/viewvc/archiva/redback/redback-components/trunk/spring-utils/src/main/java/org/apache/archiva/redback/components/springutils/CachingByTypeBeanFactory.java?rev=1398204&r1=1398203&r2=1398204&view=diff
==============================================================================
--- 
archiva/redback/redback-components/trunk/spring-utils/src/main/java/org/apache/archiva/redback/components/springutils/CachingByTypeBeanFactory.java
 (original)
+++ 
archiva/redback/redback-components/trunk/spring-utils/src/main/java/org/apache/archiva/redback/components/springutils/CachingByTypeBeanFactory.java
 Mon Oct 15 07:27:13 2012
@@ -43,13 +43,13 @@ public class CachingByTypeBeanFactory
      * @see 
org.springframework.beans.factory.support.DefaultListableBeanFactory#getBeanNamesForType(java.lang.Class)
      */
     @Override
-    public String[] getBeanNamesForType( @SuppressWarnings( "rawtypes" ) Class 
type )
+    public String[] getBeanNamesForType( @SuppressWarnings ( "rawtypes" ) 
Class type )
     {
         return getBeanNamesForType( type, true, true );
     }
 
     @Override
-    public String[] getBeanNamesForType( @SuppressWarnings( "rawtypes" ) Class 
type, boolean includeNonSingletons,
+    public String[] getBeanNamesForType( @SuppressWarnings ( "rawtypes" ) 
Class type, boolean includeNonSingletons,
                                          boolean allowEagerInit )
     {
         TypeKey typeKey = new TypeKey( type, includeNonSingletons, 
allowEagerInit );
@@ -60,10 +60,9 @@ public class CachingByTypeBeanFactory
         }
         String[] value = super.getBeanNamesForType( type, 
includeNonSingletons, allowEagerInit );
         // using this pattern as we prevent building a List
-        if ( log.isDebugEnabled() )
-        {
-            log.debug( "will add to cache: {} : {}", typeKey, Arrays.asList( 
value ) );
-        }
+
+        log.debug( "will add to cache: {} : {}", typeKey, Arrays.asList( value 
) );
+
         cachedBeanNamesForType.putIfAbsent( typeKey, value );
         return value;
     }


Reply via email to