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.

0
3 comments

Hello,

You may try another template of equals() generation i.e:

0
Avatar
Permanently deleted user

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.

0

Please go to the Settings of equals() generation:

there you will find the template. It can be duplicated and changed according to your purpose.

0

Please sign in to leave a comment.