aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorTaiki Sugawara <buzz.taiki@gmail.com>2012-02-22 05:01:35 +0900
committerTaiki Sugawara <buzz.taiki@gmail.com>2012-02-22 05:01:35 +0900
commitc809047b7892e4729f892445f730dff1d21065d6 (patch)
tree9705dc39e63462c54ff1cabeb1779963edd82f2c /src/core/lombok
parent0f861010989cb03d09003f91d936f100080b1a18 (diff)
downloadlombok-c809047b7892e4729f892445f730dff1d21065d6.tar.gz
lombok-c809047b7892e4729f892445f730dff1d21065d6.tar.bz2
lombok-c809047b7892e4729f892445f730dff1d21065d6.zip
support delegate with deprecated comment.
Diffstat (limited to 'src/core/lombok')
-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 9eca23db..25f29698 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;
@@ -329,7 +330,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 = exElem.getAnnotation(Deprecated.class) != null || (member.flags() & DEPRECATED) != 0;
signatures.add(new MethodSig(member.name, methodType, isDeprecated, exElem));
}