Author: dennisl
Date: Fri Mar 20 07:58:44 2015
New Revision: 1667948

URL: http://svn.apache.org/r1667948
Log:
Use the correct syntax for defaultValue attribute when warning about deprecated 
@Component usage.

Modified:
    
maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java

Modified: 
maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java?rev=1667948&r1=1667947&r2=1667948&view=diff
==============================================================================
--- 
maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java
 (original)
+++ 
maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/JavaAnnotationsMojoDescriptorExtractor.java
 Fri Mar 20 07:58:44 2015
@@ -601,7 +601,7 @@ public class JavaAnnotationsMojoDescript
                     // not a component but a Maven object to be transformed 
into an expression/property: deprecated
                     getLogger().warn( "Deprecated @Component annotation for '" 
+ parameter.getName() + "' field in "
                                           + mojoAnnotatedClass.getClassName()
-                                          + ": replace with @Parameter( 
default-value = \"" + expression
+                                          + ": replace with @Parameter( 
defaultValue = \"" + expression
                                           + "\", readonly = true )" );
                     parameter.setDefaultValue( expression );
                     parameter.setType( 
componentAnnotationContent.getRoleClassName() );


Reply via email to