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 240139

Summary: Dont add "public" modifier on method signatures generated in interfaces..
Product: java Reporter: akobberup
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: gtzabari, ralphbenjamin
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: ENHANCEMENT Exception Reporter:

Description akobberup 2014-01-09 08:13:19 UTC
If i in my java class refer a method in an interface that do not exist, the IDE via a hint offers to create the method in the interface. Awesome.
The generated method is always generated with the modifier "public" even though that is implied, as all methods in interfaces are public.

Could the "public" part of the method be left out of the generated awesomeness?
Comment 1 Svata Dedic 2015-10-02 16:31:52 UTC
This is a matter of coding convention. A code generator option should exist for that, used also by refactoring tools (pull up etc)
Comment 2 akobberup 2015-10-02 19:22:02 UTC
It is - I agree that an option would be the ideal solution :)