You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@onami.apache.org by si...@apache.org on 2013/01/19 18:36:27 UTC
svn commit: r1435617 -
/incubator/onami/trunk/test/src/main/java/org/apache/onami/test/GuiceMockModule.java
Author: simonetripodi
Date: Sat Jan 19 17:36:27 2013
New Revision: 1435617
URL: http://svn.apache.org/viewvc?rev=1435617&view=rev
Log:
fixed "Name 'logger' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'." checkstyle rule
Modified:
incubator/onami/trunk/test/src/main/java/org/apache/onami/test/GuiceMockModule.java
Modified: incubator/onami/trunk/test/src/main/java/org/apache/onami/test/GuiceMockModule.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/test/src/main/java/org/apache/onami/test/GuiceMockModule.java?rev=1435617&r1=1435616&r2=1435617&view=diff
==============================================================================
--- incubator/onami/trunk/test/src/main/java/org/apache/onami/test/GuiceMockModule.java (original)
+++ incubator/onami/trunk/test/src/main/java/org/apache/onami/test/GuiceMockModule.java Sat Jan 19 17:36:27 2013
@@ -61,7 +61,7 @@ public class GuiceMockModule
extends AbstractModule
{
- private final static Logger logger = Logger.getLogger( GuiceMockModule.class.getName() );
+ private final static Logger LOGGER = Logger.getLogger( GuiceMockModule.class.getName() );
final Map<Field, Object> mockedFields;
@@ -116,9 +116,9 @@ public class GuiceMockModule
{
bind( literal ).toInstance( mock );
}
- if ( logger.isLoggable( Level.FINER ) )
+ if ( LOGGER.isLoggable( Level.FINER ) )
{
- logger.finer( " Created binding for: " + type + " " + annoBy );
+ LOGGER.finer( " Created binding for: " + type + " " + annoBy );
}
}
}
@@ -144,7 +144,7 @@ public class GuiceMockModule
}
if ( numOfSimpleType > 1 )
{
- logger.finer( "Found multiple simple type" );
+ LOGGER.finer( "Found multiple simple type" );
return true;
}
@@ -157,7 +157,7 @@ public class GuiceMockModule
else
{
// found two fields with same annotation
- logger.finer( "Found multiple annotatedBy type" );
+ LOGGER.finer( "Found multiple annotatedBy type" );
return true;
}
}
@@ -171,7 +171,7 @@ public class GuiceMockModule
else
{
// found two fields with same named annotation
- logger.finer( "Found multiple namedWith type" );
+ LOGGER.finer( "Found multiple namedWith type" );
return true;
}
}