Statement unnecessarily nested within else clause.

This commit is contained in:
ggregory 2016-02-24 13:44:16 -08:00
parent ddcf6aa50b
commit 63374a1813

View File

@ -1527,11 +1527,7 @@ public static int compare(int x, int y) {
if (x == y) {
return 0;
}
if (x < y) {
return -1;
} else {
return 1;
}
return x < y ? -1 : 1;
}
/**
@ -1548,11 +1544,7 @@ public static int compare(long x, long y) {
if (x == y) {
return 0;
}
if (x < y) {
return -1;
} else {
return 1;
}
return x < y ? -1 : 1;
}
/**
@ -1569,11 +1561,7 @@ public static int compare(short x, short y) {
if (x == y) {
return 0;
}
if (x < y) {
return -1;
} else {
return 1;
}
return x < y ? -1 : 1;
}
/**