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.
Hello, I found that the wizard used for generating a new project template using an existing project structure generates a java class file containing a member public class XYZPanelVisual extends JPanel implements DocumentListener { ... private int type; //which is never referred or used in the class, but redundantly/no effect initialized in the generated constructor like: public XYZPanelVisual(XYZWizardPanel panel) { initComponents(); this.panel = panel; //-> this.type = type; //<- // Register listener on the textFields to make the automatic updates projectNameTextField.getDocument().addDocumentListener(this); projectLocationTextField.getDocument().addDocumentListener(this); } ... } What's the purpose of this variable and the redundant/no effect assignment? Regards, Cris
Fixed in trunk(5.0u2): /cvs/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/wizard/project/templatePanelVisual.javx,v new revision: 1.11; previous revision: 1.10 Fixed in 50.u1: /cvs/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/wizard/project/templatePanelVisual.javx,v new revision: 1.10.6.1; previous revision: 1.10