1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Code formatting.

This commit is contained in:
Sergey Prigogin 2008-10-12 23:55:06 +00:00
parent 44b6373985
commit c67678e4ce

View file

@ -320,8 +320,7 @@ public class ArrayUtil {
if (i >= 0) { if (i >= 0) {
System.arraycopy(array, 0, array, 1, i); System.arraycopy(array, 0, array, 1, i);
array[0] = obj; array[0] = obj;
} } else {
else {
Object[] temp = (Object[]) Array.newInstance(c, array.length * 2); Object[] temp = (Object[]) Array.newInstance(c, array.length * 2);
System.arraycopy(array, 0, temp, 1, array.length); System.arraycopy(array, 0, temp, 1, array.length);
temp[0] = obj; temp[0] = obj;
@ -356,7 +355,8 @@ public class ArrayUtil {
if (array.length <= idx) { if (array.length <= idx) {
int newLen = array.length * 2; int newLen = array.length * 2;
while( newLen <= idx ) newLen *=2; while (newLen <= idx)
newLen *= 2;
int[] temp = new int[newLen]; int[] temp = new int[newLen];
System.arraycopy(array, 0, temp, 0, array.length); System.arraycopy(array, 0, temp, 0, array.length);
@ -385,5 +385,4 @@ public class ArrayUtil {
} }
return result; return result;
} }
} }