diff options
author | Taiki Sugawara <buzz.taiki@gmail.com> | 2012-02-22 05:01:35 +0900 |
---|---|---|
committer | Taiki Sugawara <buzz.taiki@gmail.com> | 2012-02-22 05:01:35 +0900 |
commit | c809047b7892e4729f892445f730dff1d21065d6 (patch) | |
tree | 9705dc39e63462c54ff1cabeb1779963edd82f2c /src/core/lombok/javac | |
parent | 0f861010989cb03d09003f91d936f100080b1a18 (diff) | |
download | lombok-c809047b7892e4729f892445f730dff1d21065d6.tar.gz lombok-c809047b7892e4729f892445f730dff1d21065d6.tar.bz2 lombok-c809047b7892e4729f892445f730dff1d21065d6.zip |
support delegate with deprecated comment.
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleDelegate.java | 3 |
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)); } |