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.
Created attachment 140274 [details] Editor showing "create method" hint The "Create method" hint creates the method on the referred instance definition. If the instance is an interface (in the picture 1 I'm adding a method on a Dao which is an interface not a class), the modifier public should not be added. Modifiers should not be specified in a interface. See picture 2 for the current create method result. The correct result should be: boolean scriveConvivente(String ID_PAZ_SENZA_CONVIVENTE, String idConvivente); without the public modifiers.
Created attachment 140275 [details] Result in the interface
The public modifier is added as a convention; however it is redundant. The declaration style is even not consistent across JDK sources and the presence or absence of the modifier is usually a subject to local code convention. Should be configurable, defaulting to NOT add redundant modifiers.
Duplicate of #137431 Please vote there. *** This bug has been marked as a duplicate of bug 137431 ***