commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1309932 - /commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
Date Thu, 05 Apr 2012 16:36:22 GMT
Author: simonetripodi
Date: Thu Apr  5 16:36:22 2012
New Revision: 1309932

URL: http://svn.apache.org/viewvc?rev=1309932&view=rev
Log:
configure() method must return void and not Void

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=1309932&r1=1309931&r2=1309932&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
Thu Apr  5 16:36:22 2012
@@ -22,6 +22,7 @@ package org.apache.commons.digester3.ann
 import static com.sun.codemodel.JMod.FINAL;
 import static com.sun.codemodel.JMod.PROTECTED;
 import static com.sun.codemodel.JMod.PUBLIC;
+import static com.sun.codemodel.JType.parse;
 
 import static java.lang.String.format;
 
@@ -114,7 +115,7 @@ public class DigesterAnnotationsProcesso
             definedClass.javadoc().add( format( "Generated by Apache Commons Digester at
%s", new Date() ) );
             definedClass._extends( AbstractRulesModule.class );
 
-            JMethod method = definedClass.method( PROTECTED, Void.class, "configure" );
+            JMethod method = definedClass.method( PROTECTED, parse( codeModel, "void" ),
"configure" );
             method.annotate( Override.class );
 
             // Loop through the annotations that we are going to process



Mime
View raw message