aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-03-19 23:18:37 +0100
committerRoel Spilker <r.spilker@gmail.com>2012-03-19 23:18:37 +0100
commit8bc82cad05b8760aa5a01ffabaa6238b6cc535e1 (patch)
tree0e02ca81914544fe3df18b5b548ca0916b25e57f /src/eclipseAgent/lombok
parentb4fe2d4e25e164f6063df48891c3a941fabed2e9 (diff)
downloadlombok-8bc82cad05b8760aa5a01ffabaa6238b6cc535e1.tar.gz
lombok-8bc82cad05b8760aa5a01ffabaa6238b6cc535e1.tar.bz2
lombok-8bc82cad05b8760aa5a01ffabaa6238b6cc535e1.zip
Fix for issue 342: @Deprecated annotation not propagated to generated getter/setter
Diffstat (limited to 'src/eclipseAgent/lombok')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
index acf1589d..7c73b465 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
@@ -51,11 +51,9 @@ import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;
import org.eclipse.jdt.internal.compiler.ast.Expression;
import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration;
import org.eclipse.jdt.internal.compiler.ast.FieldReference;
-import org.eclipse.jdt.internal.compiler.ast.MarkerAnnotation;
import org.eclipse.jdt.internal.compiler.ast.MemberValuePair;
import org.eclipse.jdt.internal.compiler.ast.MessageSend;
import org.eclipse.jdt.internal.compiler.ast.MethodDeclaration;
-import org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference;
import org.eclipse.jdt.internal.compiler.ast.ReturnStatement;
import org.eclipse.jdt.internal.compiler.ast.SingleNameReference;
import org.eclipse.jdt.internal.compiler.ast.SingleTypeReference;
@@ -613,11 +611,7 @@ public class PatchDelegate {
}
if (isDeprecated) {
- QualifiedTypeReference qtr = new QualifiedTypeReference(new char[][] {
- {'j', 'a', 'v', 'a'}, {'l', 'a', 'n', 'g'}, {'D', 'e', 'p', 'r', 'e', 'c', 'a', 't', 'e', 'd'}}, poss(source, 3));
- setGeneratedBy(qtr, source);
- MarkerAnnotation ann = new MarkerAnnotation(qtr, pS);
- method.annotations = new Annotation[] {ann};
+ method.annotations = new Annotation[] { generateDeprecatedAnnotation(source) };
}
method.bits |= ECLIPSE_DO_NOT_TOUCH_FLAG;