mbien commented on code in PR #5550:
URL: https://github.com/apache/netbeans/pull/5550#discussion_r1117929400


##########
java/java.hints/test/unit/src/org/netbeans/modules/java/hints/errors/AddFinalModifierTest.java:
##########
@@ -105,4 +107,12 @@ protected String toDebugString(CompilationInfo info, Fix 
f) {
     protected Set<String> getSupportedErrorKeys() {
        return AddOrRemoveFinalModifier.createAddFinalModifier().getCodes();
     }
+    public static Test suite() {
+        //javac no longer supports any source level that would produce this 
error
+        return new TestCase("noop") {
+            @Override
+            public void runBare() throws Throwable {
+            }
+        };
+    }

Review Comment:
   i suppose that is because variables are now implicitly final if they are 
only read so that they can be used in lambdas etc. Is it still useful to keep 
this test around?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to