サンプル
public class
ClassA
{
public int
test (
int
i)
{
if
(i == 0) {
return 1;
}
else
{
return 0;
}
}
}
ソリューション
コードの構造を見直し、return ステートメントを 1 つだけ残します