Preserve Whole Object on Intellij IDEA
I am confused as to where the "Preserve Whole Object" option is in Intellij, I couldn't find it.
Currently, I am at the Refactoring topic of long methods.
On this topic there were 3 options: Replace Temp with Query, Introduce Parameter Object, and the 3rd one which is Preserve Whole Object.
For the first 2 there are features in Intellij with that exact name.
Also, can someone point out - is the guide teaching me refactoring techniques, or features in IDEA? maybe is it that since the refactoring techniques are common they happen to be in the Intellij IDEA as features?
Thank you.
ΠΡΠ²Π΅Ρ
Hi Ofir!
IntelliJ IDEA implements only a subset of known refactorings, which is whyΒ refactorings like Preserve Whole Object aren't there. Some refactorings are too complex or have too many moving piecesΒ to be automated by the IDE. You always have to be cautious of side effects, especially if your code usesΒ reflection orΒ dependency injection configured in external files.
Π‘Π΅ΡΠ²ΠΈΡ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠΈ ΠΊΠ»ΠΈΠ΅Π½ΡΠΎΠ² ΡΠ°Π±ΠΎΡΠ°Π΅Ρ Π½Π° ΠΏΠ»Π°ΡΡΠΎΡΠΌΠ΅ UserEcho
Hi Ofir!
IntelliJ IDEA implements only a subset of known refactorings, which is whyΒ refactorings like Preserve Whole Object aren't there. Some refactorings are too complex or have too many moving piecesΒ to be automated by the IDE. You always have to be cautious of side effects, especially if your code usesΒ reflection orΒ dependency injection configured in external files.