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

Variables used in annotations display as unused.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.0
    • None
    • None

    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

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

            Dates

              Created:
              Updated: