diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-04-29 22:00:30 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-04-29 22:00:30 +0200 |
commit | 5fcb9284c13e58750ec6c36a1eae5869a5a52925 (patch) | |
tree | ba296b4d4d0e92ae724e6568dddd679357e7905a /src/core/lombok/eclipse/handlers | |
parent | f93478e7b56494ce86e9ea7d4585f288489073e0 (diff) | |
download | lombok-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/handlers')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java | 4 |
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); |