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 - Dont add "public" modifier on method signatures generated in interfaces..
Summary: Dont add "public" modifier on method signatures generated in interfaces..
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC Windows 8 x64
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-09 08:13 UTC by akobberup
Modified: 2016-07-25 16:05 UTC (History)
2 users (show)

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 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 :)