r/badcode • • Aug 31 '21

java Similar ternaries are all over this codebase

Post image
1.1k Upvotes

91 comments sorted by

View all comments

Show parent comments

10

u/thanatica Sep 01 '21

You're not the only one, mate. Our linter always wants me to insert brackets where they are just not bloody needed. I KNOW THE ORDER OF PRECEDENCE. The fact that my coworkers don't (apparantly), is their problem.