This inspection reports any instances of the ternary condition operator. Some coding standards prohibit the use of
the condition operator, in favor of if-else statements.
Use the checkbox below to ignore simple assignments and returns and thus allow constructs like this: String s = (foo == null) ? "" : foo.toString(); |
Powered by InspectionGadgets |