Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2541

Variables used in annotations display as unused.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 11.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Description

      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) {              }

      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mmclaassen Mark Claassen
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated: