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 257521 - Add @Override annotation in code generation
Summary: Add @Override annotation in code generation
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Other
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-11 16:21 UTC by skygo
Modified: 2016-01-11 16:21 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skygo 2016-01-11 16:21:06 UTC
Netbeans GUI editors generate listener this way with Anonymous Inner Classes

for example:

button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {  
            }
        });


On the same idea default model generation for a JList miss also @Override on overrided methods.

Would it be possible to generate the @Override annotation in front of the listener methods.