aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers
diff options
context:
space:
mode:
authorRobbert Jan Grootjans <grootjans@gmail.com>2012-03-05 21:12:39 +0100
committerRobbert Jan Grootjans <grootjans@gmail.com>2012-03-05 21:12:39 +0100
commitd39623693b779634ea8b25cdc9792bc1ca3c880e (patch)
treed2365f9d463b6a302854baae3738f745238b2938 /src/core/lombok/javac/handlers
parentf1e679471d5dfadcd983476bda0bca61c86dc71c (diff)
parent1ac79bf86b3a11f34ad7f154f1062541052b114d (diff)
downloadlombok-d39623693b779634ea8b25cdc9792bc1ca3c880e.tar.gz
lombok-d39623693b779634ea8b25cdc9792bc1ca3c880e.tar.bz2
lombok-d39623693b779634ea8b25cdc9792bc1ca3c880e.zip
Merge branch 'master' of github.com:rzwitserloot/lombok
Conflicts: doc/changelog.markdown
Diffstat (limited to 'src/core/lombok/javac/handlers')
-rw-r--r--src/core/lombok/javac/handlers/HandleDelegate.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleDelegate.java b/src/core/lombok/javac/handlers/HandleDelegate.java
index 41e587f8..18817d49 100644
--- a/src/core/lombok/javac/handlers/HandleDelegate.java
+++ b/src/core/lombok/javac/handlers/HandleDelegate.java
@@ -22,6 +22,7 @@
package lombok.javac.handlers;
import static lombok.javac.handlers.JavacHandlerUtil.*;
+import static com.sun.tools.javac.code.Flags.*;
import java.util.ArrayList;
import java.util.Arrays;
@@ -335,7 +336,7 @@ public class HandleDelegate extends JavacAnnotationHandler<Delegate> {
ExecutableType methodType = (ExecutableType) types.asMemberOf(ct, member);
String sig = printSig(methodType, member.name, types);
if (!banList.add(sig)) continue; //If add returns false, it was already in there
- boolean isDeprecated = exElem.getAnnotation(Deprecated.class) != null;
+ boolean isDeprecated = (member.flags() & DEPRECATED) != 0;
signatures.add(new MethodSig(member.name, methodType, isDeprecated, exElem));
}