Lines 564-572
Link Here
|
564 |
while (size <= nullCount) size *= 2; |
564 |
while (size <= nullCount) size *= 2; |
565 |
this.expectedTypes = new TypeBinding[size]; |
565 |
this.expectedTypes = new TypeBinding[size]; |
566 |
} |
566 |
} |
567 |
else if (nullCount == this.expectedTypes.length) { |
567 |
else if (nullCount >= this.expectedTypes.length) { |
|
|
568 |
int oldLen = this.expectedTypes.length; |
568 |
System.arraycopy(this.expectedTypes, 0, |
569 |
System.arraycopy(this.expectedTypes, 0, |
569 |
this.expectedTypes = new TypeBinding[nullCount * 2], 0, nullCount); |
570 |
this.expectedTypes = new TypeBinding[nullCount * 2], 0, oldLen); |
570 |
} |
571 |
} |
571 |
this.expectedTypes[nullCount] = expectedType; |
572 |
this.expectedTypes[nullCount] = expectedType; |
572 |
} |
573 |
} |