mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Code formatting.
This commit is contained in:
parent
44b6373985
commit
c67678e4ce
1 changed files with 65 additions and 66 deletions
|
@ -320,8 +320,7 @@ public class ArrayUtil {
|
|||
if (i >= 0) {
|
||||
System.arraycopy(array, 0, array, 1, i);
|
||||
array[0] = obj;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
Object[] temp = (Object[]) Array.newInstance(c, array.length * 2);
|
||||
System.arraycopy(array, 0, temp, 1, array.length);
|
||||
temp[0] = obj;
|
||||
|
@ -356,7 +355,8 @@ public class ArrayUtil {
|
|||
|
||||
if (array.length <= idx) {
|
||||
int newLen = array.length * 2;
|
||||
while( newLen <= idx ) newLen *=2;
|
||||
while (newLen <= idx)
|
||||
newLen *= 2;
|
||||
int[] temp = new int[newLen];
|
||||
System.arraycopy(array, 0, temp, 0, array.length);
|
||||
|
||||
|
@ -385,5 +385,4 @@ public class ArrayUtil {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue