This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239248 - wrong hint Field can be final
Summary: wrong hint Field can be final
Status: RESOLVED DUPLICATE of bug 240163
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-08 22:31 UTC by infonaut
Modified: 2014-01-24 17:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description infonaut 2013-12-08 22:31:57 UTC
The following code snip demonstrates this issue.

public class PaneBorder extends AbstractBorder
{
...
    private Color color;
    private int inset; // Hint reports "Field inset can be final"

    public PaneBorder()
    {
        color = Color.LIGHT_GRAY;
        inset = 1;
    }
    
    public PaneBorder(int gap)
    {
        this();
        inset += gap;
    }
...
}
Comment 1 Jiri Prox 2013-12-09 06:52:57 UTC
reproducible
Comment 2 Svata Dedic 2014-01-24 17:29:49 UTC

*** This bug has been marked as a duplicate of bug 240163 ***