Trinocular operator returns boolean type
shufengh opened this issue · 1 comments
shufengh commented
Is this a good practice to use a trinocular operator when the result itself is boolean as below:
boolean isAncestor = rx.node != null || ry.node != null ? true : false;
or we can just write
boolean isAncestor = rx.node != null || ry.node != null;
gaylemcd commented
Thanks. Will update.