blob: e17ed504d460c526aaa01f083ca6991ac7712340 [file] [log] [blame]
package com.siyeh.ipp.trivialif.convert_to_nested_if;
public class X {
public static boolean foo(double a, double b, double c)
{
// the following return statement is converted by "Convert to multiple 'ifs'" (on the second &&) to the below, incorrect if-then-else
if (a > c) if (a < b) if (!bar1(a)) if (!bar2(a)) return true;
return false;
}
private static boolean bar1(double a)
{
return true;
}
private static boolean bar2(double a)
{
return true;
}
}