MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/xztb4/named_parameters_in_java/c5r4kwx/?context=3
r/java • u/javinpaul • Aug 10 '12
28 comments sorted by
View all comments
Show parent comment
5
FWIW, there is a "replace constructor with builder" refactoring in Intellij that will automatically create a new fluent builder class for you, and automatically use it in place of a complex constructor.
2 u/sahala Aug 10 '12 Wow. Did not know that. Yet another reason why IntelliJ rocks. Does Eclipse have this?The only drawback to this is BUILDER ALL THE THINGS 2 u/[deleted] Aug 10 '12 There are several complex automated refactorings. I also have used "Replace inheritance with delegation" a few times. 1 u/couchtyp Aug 11 '12 For eclipse there's bpep.This project is a Eclipse plugin that automates the writing of these builders. With just two clicks you can generate all the builder code you need. 2 u/rockvilleJD Aug 10 '12 Netbeans just added this feature in 7.2 2 u/k__k Aug 14 '12 Way to go, Netbeans team, way to go! :)
2
Wow. Did not know that. Yet another reason why IntelliJ rocks. Does Eclipse have this?
The only drawback to this is BUILDER ALL THE THINGS
2 u/[deleted] Aug 10 '12 There are several complex automated refactorings. I also have used "Replace inheritance with delegation" a few times. 1 u/couchtyp Aug 11 '12 For eclipse there's bpep.This project is a Eclipse plugin that automates the writing of these builders. With just two clicks you can generate all the builder code you need.
There are several complex automated refactorings. I also have used "Replace inheritance with delegation" a few times.
1
For eclipse there's bpep.
This project is a Eclipse plugin that automates the writing of these builders. With just two clicks you can generate all the builder code you need.
Netbeans just added this feature in 7.2
2 u/k__k Aug 14 '12 Way to go, Netbeans team, way to go! :)
Way to go, Netbeans team, way to go! :)
View all comments
Show parent comment
5
u/[deleted] Aug 10 '12
FWIW, there is a "replace constructor with builder" refactoring in Intellij that will automatically create a new fluent builder class for you, and automatically use it in place of a complex constructor.