javavscode
javavscode copied to clipboard
No support for @SupressWarnings
Unused variables are still underlined even when SupressWarnings is applied. This did not happen when working with the RedHat extension.
@SuppressWarnings("unused")
public class Abstraction {
public static void main(String[] args) {
Object object = new Object();
}
}
Findings from my testing:
-
@SuppressWarnings("unused")
really is ignored, while others, like@SuppressWarnings("static-access")
are correctly honored. - Unlike the Red Hat extension, this one doesn't seem to supply Quick Fix for adding/extending
@SuppressWarnings
for any type of suppressible problem.
PR raised on Netbeans side to fix this issue: https://github.com/apache/netbeans/pull/7548
PR merged would be available in NB-23