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

Summary: Add @Override annotation in code generation
Product: guibuilder Reporter: skygo <skygo>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

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.