onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1435695 - /incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java
Date Sat, 19 Jan 2013 20:56:18 GMT
Author: simonetripodi
Date: Sat Jan 19 20:56:17 2013
New Revision: 1435695

URL: http://svn.apache.org/viewvc?rev=1435695&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/handler/MockHandler.java

Modified: incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java?rev=1435695&r1=1435694&r2=1435695&view=diff
==============================================================================
--- incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java
(original)
+++ incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java
Sat Jan 19 20:56:17 2013
@@ -43,7 +43,7 @@ public final class MockHandler
     implements FieldHandler<Mock>
 {
 
-    private static final Logger logger = Logger.getLogger( MockHandler.class.getName() );
+    private static final Logger LOGGER = Logger.getLogger( MockHandler.class.getName() );
 
     final private HashMap<Field, Object> mockedObjects = new HashMap<Field, Object>(
1 );
 
@@ -76,9 +76,9 @@ public final class MockHandler
     {
         final Class<? super Object> type = (Class<? super Object>) element.getDeclaringClass();
 
-        if ( logger.isLoggable( Level.FINER ) )
+        if ( LOGGER.isLoggable( Level.FINER ) )
         {
-            logger.finer( "      Found annotated field: " + element );
+            LOGGER.finer( "      Found annotated field: " + element );
         }
         if ( annotation.providedBy().length() > 0 )
         {
@@ -136,9 +136,9 @@ public final class MockHandler
         {
             try
             {
-                if ( logger.isLoggable( Level.FINER ) )
+                if ( LOGGER.isLoggable( Level.FINER ) )
                 {
-                    logger.finer( "        ...invoke Provider method for Mock: " + method.getName()
);
+                    LOGGER.finer( "        ...invoke Provider method for Mock: " + method.getName()
);
                 }
                 if ( !Modifier.isPublic( method.getModifiers() ) || !Modifier.isStatic( method.getModifiers()
) )
                 {



Mime
View raw message