You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tapio Koskinen (JIRA)" <ji...@apache.org> on 2019/04/16 08:14:00 UTC

[jira] [Updated] (NETBEANS-2416) Incorrect warning: "Field x is not used"

     [ https://issues.apache.org/jira/browse/NETBEANS-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tapio Koskinen updated NETBEANS-2416:
-------------------------------------
    Description: 
Given the following class Netbeans warns "Field VALUE is not used":
 
 {{public class Test {}}
 {{    private static final String VALUE = "-";}}

{{    @SuppressWarnings(VALUE)}}
 {{    public void test() {}}}
 {{}}}
  

 

  was:
Given the following class Netbeans warns "Field VALUE is not used":
{{ }}
 
{{public class Test {}}
{{    private static final String VALUE = "-";}}

{{    @SuppressWarnings(VALUE)}}
{{    public void test() {}}
{{    }}}
{{}}}
 

 


> Incorrect warning: "Field x is not used"
> ----------------------------------------
>
>                 Key: NETBEANS-2416
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2416
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.0
>         Environment: Product Version: Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319)
> Java: 12; OpenJDK 64-Bit Server VM 12+33
> Runtime: OpenJDK Runtime Environment 12+33
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
>            Reporter: Tapio Koskinen
>            Priority: Major
>
> Given the following class Netbeans warns "Field VALUE is not used":
>  
>  {{public class Test {}}
>  {{    private static final String VALUE = "-";}}
> {{    @SuppressWarnings(VALUE)}}
>  {{    public void test() {}}}
>  {{}}}
>   
>  



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