Statement unnecessarily nested within else clause.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2005-08-08 00:43:36 +00:00
parent 5f0e40893d
commit ea5f046469
1 changed files with 2 additions and 4 deletions

View File

@ -952,9 +952,8 @@ public class ArrayUtils {
public static int getLength(Object array) {
if (array == null) {
return 0;
} else {
return Array.getLength(array);
}
return Array.getLength(array);
}
/**
@ -3389,9 +3388,8 @@ public class ArrayUtils {
Object newArray = Array.newInstance(array.getClass().getComponentType(), arrayLength + 1);
System.arraycopy(array, 0, newArray, 0, arrayLength);
return newArray;
} else {
return Array.newInstance(newArrayComponentType, 1);
}
return Array.newInstance(newArrayComponentType, 1);
}
/**