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.
Please review API for 3 new refactorings.
<change id="ReplaceConstructorWithBuilder-ReplaceConstructorWithFactory-InvertBoolean"> <api name="refactoring"/> <summary>New refactorings on board: ReplaceConstructorWithFactory, ReplaceConstructorWithBuilder and InvertBoolean</summary> <version major="1" minor="34"/> <date day="10" month="2" year="2012"/> <author login="jbecicka"/> <compatibility addition="yes"/> <description> <p> New refactorings on board: ReplaceConstructorWithFactoryRefactoring, ReplaceConstructorWithBuilderRefactoring and InvertBooleanRefactoring. </p> </description> <class package="org.netbeans.modules.refactoring.java.api" name="ReplaceConstructorWithFactoryRefactoring"/> <class package="org.netbeans.modules.refactoring.java.api" name="ReplaceConstructorWithBuilderRefactoring"/> <class package="org.netbeans.modules.refactoring.java.api" name="InvertBoolean"/> <issue number="208240"/> </change>
Created attachment 115571 [details] InvertBoolean
Created attachment 115573 [details] ReplaceConstructorWithBuilder
Created attachment 115574 [details] ReplaceConstructorWithFactory
Please review attached API classes and please ignore package names.
[R01] ReplaceConstructorWithFactoryRefactoring.getFactoryName can return null, despite the @NonNull annotation. Please initialize or change the annotation. (same for other properties). [R02] When doing an invert boolean, I do not think you always want to change the name. Of course you can give the old name to the InvertBooleanRefactoring, but it would be easier to be able to set the new name to null.
http://hg.netbeans.org/jet-main/rev/49de580e6a2a
Integrated into 'main-golden', will be available in build *201204021038* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/49de580e6a2a User: Jan Becicka <jbecicka@netbeans.org> Log: Issue #208240 - API Review: ReplaceConstructorWithFactoryRefactoring, ReplaceConstructorWithBuilderRefactoring and InvertBooleanRefactoring Issue #208240 - API Review: ReplaceConstructorWithFactoryRefactoring, ReplaceConstructorWithBuilderRefactoring and InvertBooleanRefactoring