You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Mark Claassen (JIRA)" <ji...@apache.org> on 2019/05/13 14:56:00 UTC
[jira] [Created] (NETBEANS-2541) Variables used in annotations
display as unused.
Mark Claassen created NETBEANS-2541:
---------------------------------------
Summary: Variables used in annotations display as unused.
Key: NETBEANS-2541
URL: https://issues.apache.org/jira/browse/NETBEANS-2541
Project: NetBeans
Issue Type: Bug
Components: editor - Hints & Annotations
Affects Versions: 11.0
Environment: Product Version: Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319)
Java: 12; Java HotSpot(TM) 64-Bit Server VM 12+33
Runtime: Java(TM) SE Runtime Environment 12+33
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
Reporter: Mark Claassen
In the following class, VALUE1 and VALUE2 are underlined by the editor as unused, but they are used in the annotations.
public class Tester {
private static final String VALUE1="unchecked";
private static final String VALUE2="unchecked";
public Tester() {
}
@SuppressWarnings(VALUE1)
public void test(@SuppressWarnings(VALUE2) String s) {
}
}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists