Can someone tell me why this use of the ternary operator is incorrect? Operands 2 and 3 return a boolean.
public class Something {
...
private static final d
Usage of Java ternary operation condition should looks like
result = testCondition ? value1 : value2
it's java-language specification.
Equality, Relational, and Conditional Operators
In the following example, this operator should be read as: "If someCondition is true, assign the value of value1 to result. Otherwise, assign the value of value2 to result