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.
From the JLS: "It is permitted, but strongly discouraged as a matter of style, to redundantly specify the public modifier for interface methods." But when "Create method" is used the method is created with the 'public' modifier. To reproduce: 1. Create the next interface: public interface Visitor { void visit(String aThis); } 2. Write somewhere visitor.visit(new Integer(0)); 3. Click "Create method visit(Integer) in .... Result: public interface Visitor { public void visit(Integer aThis); void visit(String aThis); } Should be: public interface Visitor { void visit(Integer aThis); void visit(String aThis); }
*** Bug 182087 has been marked as a duplicate of this bug. ***
*** Bug 236167 has been marked as a duplicate of this bug. ***