aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-04-29 22:00:30 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-04-29 22:00:30 +0200
commit5fcb9284c13e58750ec6c36a1eae5869a5a52925 (patch)
treeba296b4d4d0e92ae724e6568dddd679357e7905a /src/core/lombok/eclipse
parentf93478e7b56494ce86e9ea7d4585f288489073e0 (diff)
downloadlombok-5fcb9284c13e58750ec6c36a1eae5869a5a52925.tar.gz
lombok-5fcb9284c13e58750ec6c36a1eae5869a5a52925.tar.bz2
lombok-5fcb9284c13e58750ec6c36a1eae5869a5a52925.zip
added docs for the new onParam feature on EqualsAndHashCode, and some tiny stylistic nitpicking.
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
index 9b2389e8..b6ea568d 100644
--- a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
+++ b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
@@ -484,7 +484,7 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler<EqualsAndH
setGeneratedBy(objectRef, source);
method.arguments = new Argument[] {new Argument(new char[] { 'o' }, 0, objectRef, Modifier.FINAL)};
method.arguments[0].sourceStart = pS; method.arguments[0].sourceEnd = pE;
- method.arguments[0].annotations = onParam.toArray(new Annotation[] {});
+ method.arguments[0].annotations = onParam.toArray(new Annotation[0]);
setGeneratedBy(method.arguments[0], source);
List<Statement> statements = new ArrayList<Statement>();
@@ -749,7 +749,7 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler<EqualsAndH
setGeneratedBy(objectRef, source);
method.arguments = new Argument[] {new Argument(otherName, 0, objectRef, Modifier.FINAL)};
method.arguments[0].sourceStart = pS; method.arguments[0].sourceEnd = pE;
- method.arguments[0].annotations = onParam.toArray(new Annotation[] {});
+ method.arguments[0].annotations = onParam.toArray(new Annotation[0]);
setGeneratedBy(method.arguments[0], source);
SingleNameReference otherRef = new SingleNameReference(otherName, p);