Ternary operation in equals generation
Answered
Is there a way of removing the ternary operator generation whenever generating equals?
The "Intellij default" seems to be forcing the use of ternary operators so.
Please sign in to leave a comment.
Hello,
You may try another template of equals() generation i.e:
That didn't really answer my question though, I just want to know if there's a way to disable the forced ternary operations which are presented in the default template for equals and hashcode.
Please go to the Settings of equals() generation:
there you will find the template. It can be duplicated and changed according to your purpose.