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:
parent
5f0e40893d
commit
ea5f046469
|
@ -952,9 +952,8 @@ public class ArrayUtils {
|
||||||
public static int getLength(Object array) {
|
public static int getLength(Object array) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
return 0;
|
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);
|
Object newArray = Array.newInstance(array.getClass().getComponentType(), arrayLength + 1);
|
||||||
System.arraycopy(array, 0, newArray, 0, arrayLength);
|
System.arraycopy(array, 0, newArray, 0, arrayLength);
|
||||||
return newArray;
|
return newArray;
|
||||||
} else {
|
|
||||||
return Array.newInstance(newArrayComponentType, 1);
|
|
||||||
}
|
}
|
||||||
|
return Array.newInstance(newArrayComponentType, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue