[ 
https://issues.apache.org/jira/browse/MNG-7416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769323#comment-17769323
 ] 

ASF GitHub Bot commented on MNG-7416:
-------------------------------------

timtebeek commented on code in PR #227:
URL: 
https://github.com/apache/maven-plugin-tools/pull/227#discussion_r1337690988


##########
maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/javadoc/JavaJavadocMojoDescriptorExtractor.java:
##########
@@ -510,7 +510,7 @@ private Map<String, JavaField> 
extractFieldParameterTags(JavaClass javaClass) {
         if (superClass != null) {
             rawParams = extractFieldParameterTags(superClass);
         } else {
-            rawParams = new TreeMap<String, JavaField>();
+            rawParams = new TreeMap<>();

Review Comment:
   I'll keep an eye out of future PRs for this pattern, although I think we've 
gone through the vast majority by now. There's a  couple projects left with one 
or two cases, which I hope to pick up along with other more meaningful changes.





> Simplify conditional expression.
> --------------------------------
>
>                 Key: MNG-7416
>                 URL: https://issues.apache.org/jira/browse/MNG-7416
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Arturo Bernal
>            Priority: Minor
>
> Simplify conditional expression and avoid extra computations. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to