mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-06 01:58:24 +00:00
Statement unnecessarily nested within else clause.
This commit is contained in:
parent
ddcf6aa50b
commit
63374a1813
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user