bmarwell commented on code in PR #152:
URL: https://github.com/apache/maven-plugin-tools/pull/152#discussion_r996494722


##########
maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/DefaultMojoAnnotationsScanner.java:
##########
@@ -306,11 +318,21 @@ protected void analyzeVisitors( MojoClassVisitor 
mojoClassVisitor )
 
                 populateAnnotationContent( parameterAnnotationContent, 
fieldAnnotationVisitor );
 
+                DescriptionAnnotationContent descriptionAnnotationContent = 
new DescriptionAnnotationContent();
+                final MojoAnnotationVisitor descriptionAnnotationVisitor =
+                        annotationVisitorMap.get( Description.class.getName() 
);
+                if ( descriptionAnnotationVisitor != null )
+                {
+                    populateAnnotationContent( descriptionAnnotationContent, 
descriptionAnnotationVisitor );
+                }

Review Comment:
   `@Description` is optional and thus can be `null`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to