Statement unnecessarily nested within else clause.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-06-27 13:18:34 +00:00
parent 8a95db3d42
commit dd74cf1da5
1 changed files with 2 additions and 3 deletions

View File

@ -60,9 +60,8 @@ public static int distance(final Class<?> child, final Class<?> parent) {
if (d == 1) { if (d == 1) {
return d; return d;
} else { }
d += distance(cParent, parent); d += distance(cParent, parent);
return d > 0 ? d + 1 : -1; return d > 0 ? d + 1 : -1;
} }
} }
}