mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
Instead of using the java 1.6 Arrays.copyOf method, we use System.arraycopy.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user