Instead of using the java 1.6 Arrays.copyOf method, we use System.arraycopy.

This commit is contained in:
Robbert Jan Grootjans committed 2011-11-07 20:56:53 +01:00
1 parent dddeaf24c7
commit acb5339c62
1 file changed
+2 -1
@@ -1095,7 +1095,8 @@ public class EclipseHandlerUtil {
setGeneratedBy(ann, source);
setGeneratedBy(ann.memberValue, source);
if (originalAnnotationArray == null) return new Annotation[] { ann };
Annotation[] newAnnotationArray = Arrays.copyOf(originalAnnotationArray, originalAnnotationArray.length + 1);
Annotation[] newAnnotationArray = new Annotation[originalAnnotationArray.length + 1];
System.arraycopy(originalAnnotationArray, 0, newAnnotationArray, 0, originalAnnotationArray.length);
newAnnotationArray[originalAnnotationArray.length] = ann;
return newAnnotationArray;
}