commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1310270 - /commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
Date Fri, 06 Apr 2012 10:06:52 GMT
Author: simonetripodi
Date: Fri Apr  6 10:06:52 2012
New Revision: 1310270

URL: http://svn.apache.org/viewvc?rev=1310270&view=rev
Log:
local variables made final where possible

Modified:
    commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java

Modified: commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java?rev=1310270&r1=1310269&r2=1310270&view=diff
==============================================================================
--- commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
(original)
+++ commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
Fri Apr  6 10:06:52 2012
@@ -93,28 +93,30 @@ public class DigesterAnnotationsProcesso
     {
         // processingEnv is a predefined member in AbstractProcessor class
         // Messager allows the processor to output messages to the environment
-        FormattingMessager messager = new FormattingMessager( processingEnv.getMessager()
);
+        final FormattingMessager messager = new FormattingMessager( processingEnv.getMessager()
);
 
         // TODO get these values from -A parameters
         String packageName = getClass().getPackage().getName();
         String className = "GeneratedRulesModule";
 
-        JCodeModel codeModel = new JCodeModel();
+        final JCodeModel codeModel = new JCodeModel();
 
-        JPackage modulePackage = codeModel._package( packageName );
+        final JPackage modulePackage = codeModel._package( packageName );
 
         boolean success = false;
 
         try
         {
-            JDefinedClass rulesModuleClass = modulePackage._class( FINAL | PUBLIC, className
);
+            final JDefinedClass rulesModuleClass = modulePackage._class( FINAL | PUBLIC,
className );
             rulesModuleClass.javadoc().add( format( "Generated by Apache Commons Digester
at %s", new Date() ) );
             rulesModuleClass._extends( AbstractRulesModule.class );
 
-            JMethod configureMethod = rulesModuleClass.method( PROTECTED, parse( codeModel,
"void" ), "configure" );
+            final JMethod configureMethod = rulesModuleClass.method( PROTECTED,
+                                                                     parse( codeModel, "void"
),
+                                                                     "configure" );
             configureMethod.javadoc().add( "{@inheritDoc}" );
             configureMethod.annotate( Override.class );
-            JBlock configureMethodBody = configureMethod.body();
+            final JBlock configureMethodBody = configureMethod.body();
 
             // Loop through the annotations that we are going to process
             for ( TypeElement annotation : annotations )



Mime
View raw message