>> if (_x == null && _y == null)>> {>> return 0;>> }>> // _y != null below underlined in blue // - expression is>> always true.>> else if (_x == null && _y != null)>> {>> return -1;>> }>> // _x != null below underlined in blue // - expression is>> always true.>> else if (_y == null && _x != null)>> {>> return 1;>> }>> }
The analysis is correct here - the underlined conditions are definetlyalways true
Indeed they are......thanks for that!
Please sign in to leave a comment.
>> if (_x == null && _y == null)
>> {
>> return 0;
>> }
>> // _y != null below underlined in blue // - expression is
>> always true.
>> else if (_x == null && _y != null)
>> {
>> return -1;
>> }
>> // _x != null below underlined in blue // - expression is
>> always true.
>> else if (_y == null && _x != null)
>> {
>> return 1;
>> }
>> }
Indeed they are......thanks for that!