Ternary operation in equals generation
已回答
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.
请先登录再写评论。
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.