You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/12/15 17:50:11 UTC

[GitHub] [maven-javadoc-plugin] elharo commented on a change in pull request #59: [MJAVADOC-662] The fix operation wrongly generate illegal javadoc for static final fields.

elharo commented on a change in pull request #59:
URL: https://github.com/apache/maven-javadoc-plugin/pull/59#discussion_r543556764



##########
File path: src/test/resources/unit/fix-test/expected/src/main/java/fix/test/ClassWithJavadoc.java
##########
@@ -451,6 +451,21 @@ public void testException3()
     {
         throw new Exception();
     }
+
+    /**
+     * to test if it will handle static final field correctly.
+     */
+    public static final int TEST_STATIC_FINAL_FIELD_0 = 1 << 2;

Review comment:
       Yes, they're legal, but what does this add over a simple int? If I read this right, this is simply `4` (and if I'm not reading it right that just proves it's confusing)




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org