Bug 200589 - @Override annotation should have a quick hint to create the method to the interface
@Override annotation should have a quick hint to create the method to the int...
Status: NEW
Product: java
Classification: Unclassified
Component: Hints
7.0
PC Linux
: P3 (vote)
: TBD
Assigned To: Svata Dedic
issues@java
: UI, USABILITY
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-02 09:16 UTC by ZeroOne01
Modified: 2013-09-02 14:24 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments
Here I'd like to see an option to create this method into the interface that this class implements (9.89 KB, image/png)
2011-08-02 09:16 UTC, ZeroOne01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ZeroOne01 2011-08-02 09:16:53 UTC
Created attachment 109742 [details]
Here I'd like to see an option to create this method into the interface that this class implements

I often start writing new methods directly into the class that implements them instead of the interface that describes the class. Now, if I write a method signature into the interface, the class has a quick hint "Implement all abstract methods" or something along those lines. I find this should work the other way around as well: if you write the @Override annotation for a method that is not present in the interface, the quick hint should offer to create that method there. If there are multiple interfaces or super classes the quick hint should of course offer a list from where you could select the correct class or interface.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo