Statement unnecessarily nested within else clause.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606054 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-06-27 12:27:47 +00:00
parent 5a1101da75
commit e3ee532338
1 changed files with 21 additions and 22 deletions

View File

@ -1109,7 +1109,7 @@ private static String getCanonicalName(String className) {
className = StringUtils.deleteWhitespace(className); className = StringUtils.deleteWhitespace(className);
if (className == null) { if (className == null) {
return null; return null;
} else { }
int dim = 0; int dim = 0;
while (className.startsWith("[")) { while (className.startsWith("[")) {
dim++; dim++;
@ -1136,7 +1136,6 @@ private static String getCanonicalName(String className) {
return canonicalClassNameBuffer.toString(); return canonicalClassNameBuffer.toString();
} }
} }
}
/** /**
* Get an {@link Iterable} that can iterate over a class hierarchy in ascending (subclass to superclass) order, * Get an {@link Iterable} that can iterate over a class hierarchy in ascending (subclass to superclass) order,