Community
Participate
Working Groups
There should be another exception to the "Missing @Override annotation" rule for anonymous implementations like this. ################################################## btn.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { } } ); ################################################## If I set this rule to 'Warning' (and also include interfaces') the code above would produce a warning. Anonymous inline implementations get pretty bloated with the @Override line(s). I know, in the above case I could use lambda. But I can't, if there are two methods to be implemented.