Merge if clauses
This commit is contained in:
parent
2e0e2a1659
commit
3739a4cd37
|
@ -233,12 +233,10 @@ public class MethodUtils {
|
||||||
while (interfaceIndex < allInterfaces.size() ||
|
while (interfaceIndex < allInterfaces.size() ||
|
||||||
superClassIndex < allSuperclasses.size()) {
|
superClassIndex < allSuperclasses.size()) {
|
||||||
final Class<?> acls;
|
final Class<?> acls;
|
||||||
if (interfaceIndex >= allInterfaces.size()) {
|
if (interfaceIndex >= allInterfaces.size() || superClassIndex < allSuperclasses.size() && superClassIndex < interfaceIndex) {
|
||||||
acls = allSuperclasses.get(superClassIndex++);
|
acls = allSuperclasses.get(superClassIndex++);
|
||||||
} else if (superClassIndex >= allSuperclasses.size() || !(superClassIndex < interfaceIndex)) {
|
|
||||||
acls = allInterfaces.get(interfaceIndex++);
|
|
||||||
} else {
|
} else {
|
||||||
acls = allSuperclasses.get(superClassIndex++);
|
acls = allInterfaces.get(interfaceIndex++);
|
||||||
}
|
}
|
||||||
allSuperClassesAndInterfaces.add(acls);
|
allSuperClassesAndInterfaces.add(acls);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue