Statement unnecessarily nested within else clause.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1606056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3ee532338
commit
0ef747156b
|
@ -1117,24 +1117,23 @@ public class ClassUtils {
|
|||
}
|
||||
if (dim < 1) {
|
||||
return className;
|
||||
} else {
|
||||
if (className.startsWith("L")) {
|
||||
className = className.substring(
|
||||
1,
|
||||
className.endsWith(";")
|
||||
? className.length() - 1
|
||||
: className.length());
|
||||
} else {
|
||||
if (className.length() > 0) {
|
||||
className = reverseAbbreviationMap.get(className.substring(0, 1));
|
||||
}
|
||||
}
|
||||
final StringBuilder canonicalClassNameBuffer = new StringBuilder(className);
|
||||
for (int i = 0; i < dim; i++) {
|
||||
canonicalClassNameBuffer.append("[]");
|
||||
}
|
||||
return canonicalClassNameBuffer.toString();
|
||||
}
|
||||
if (className.startsWith("L")) {
|
||||
className = className.substring(
|
||||
1,
|
||||
className.endsWith(";")
|
||||
? className.length() - 1
|
||||
: className.length());
|
||||
} else {
|
||||
if (className.length() > 0) {
|
||||
className = reverseAbbreviationMap.get(className.substring(0, 1));
|
||||
}
|
||||
}
|
||||
final StringBuilder canonicalClassNameBuffer = new StringBuilder(className);
|
||||
for (int i = 0; i < dim; i++) {
|
||||
canonicalClassNameBuffer.append("[]");
|
||||
}
|
||||
return canonicalClassNameBuffer.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue