diff options
author | Robbert Jan Grootjans <grootjans@gmail.com> | 2011-11-07 20:56:53 +0100 |
---|---|---|
committer | Robbert Jan Grootjans <grootjans@gmail.com> | 2011-11-07 20:56:53 +0100 |
commit | acb5339c62aa118fa94ab3ae9a5abd52b3f7250e (patch) | |
tree | f999c265b27de912c5fec46ad2dc1eadab7298ae /src | |
parent | dddeaf24c7c0bf9a1d8e027e2a194f59404be548 (diff) | |
download | lombok-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.java | 3 |
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; } |