aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobbert Jan Grootjans <grootjans@gmail.com>2011-11-07 20:56:53 +0100
committerRobbert Jan Grootjans <grootjans@gmail.com>2011-11-07 20:56:53 +0100
commitacb5339c62aa118fa94ab3ae9a5abd52b3f7250e (patch)
treef999c265b27de912c5fec46ad2dc1eadab7298ae /src
parentdddeaf24c7c0bf9a1d8e027e2a194f59404be548 (diff)
downloadlombok-acb5339c62aa118fa94ab3ae9a5abd52b3f7250e.tar.gz
lombok-acb5339c62aa118fa94ab3ae9a5abd52b3f7250e.tar.bz2
lombok-acb5339c62aa118fa94ab3ae9a5abd52b3f7250e.zip
Instead of using the java 1.6 Arrays.copyOf method, we use System.arraycopy.
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
index 5fd4c041..66d00b51 100644
--- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
+++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
@@ -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;
}