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 | |
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')
-rw-r--r-- | src/core/lombok/EqualsAndHashCode.java | 8 | ||||
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/lombok/EqualsAndHashCode.java b/src/core/lombok/EqualsAndHashCode.java index 0ce9ded7..dbce23b8 100644 --- a/src/core/lombok/EqualsAndHashCode.java +++ b/src/core/lombok/EqualsAndHashCode.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2013 The Project Lombok Authors. + * Copyright (C) 2009-2014 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -69,9 +69,9 @@ public @interface EqualsAndHashCode { AnyAnnotation[] onParam() default {}; /** - * Placeholder annotation to enable the placement of annotations on the generated code. - * @deprecated Don't use this annotation, ever - Read the documentation. - */ + * Placeholder annotation to enable the placement of annotations on the generated code. + * @deprecated Don't use this annotation, ever - Read the documentation. + */ @Deprecated @Retention(RetentionPolicy.SOURCE) @Target({}) 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); |