diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-14 12:17:38 +0000 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-14 12:17:38 +0000 |
commit | fa0a027853d02fd6e53246ca223e2985f99d8d34 (patch) | |
tree | a71f2551ffbaf98dbb4e0727b9ab3074ce733880 /src/eclipseAgent/lombok/eclipse | |
parent | 9921778f972fbe8ab37870abddf1bd5457c60a2c (diff) | |
download | lombok-fa0a027853d02fd6e53246ca223e2985f99d8d34.tar.gz lombok-fa0a027853d02fd6e53246ca223e2985f99d8d34.tar.bz2 lombok-fa0a027853d02fd6e53246ca223e2985f99d8d34.zip |
Removed the brainfart where final methods aren't delegated.
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java index 15150b41..facc6592 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java @@ -213,12 +213,6 @@ public class PatchDelegate { return method; } - private static void addAllMethodBindings(List<MethodBinding> list, TypeBinding binding) { - List<String> ban = new ArrayList<String>(); - ban.addAll(METHODS_IN_OBJECT); - addAllMethodBindings(list, binding, ban); - } - private static final class Reflection { public static final Method classScopeBuildMethodsMethod; @@ -236,7 +230,7 @@ public class PatchDelegate { } } - private static void addAllMethodBindings(List<MethodBinding> list, TypeBinding binding, List<String> banList) { + private static void addAllMethodBindings(List<MethodBinding> list, TypeBinding binding) { if (binding == null) return; if (binding instanceof MemberTypeBinding) { ClassScope cs = ((SourceTypeBinding)binding).scope; @@ -258,11 +252,7 @@ public class PatchDelegate { if (mb.isDefaultAbstract()) continue; if (!mb.isPublic()) continue; if (mb.isSynthetic()) continue; - if (mb.isFinal()) { - banList.add(printSig(mb)); - continue; - } - if (banList.contains(printSig(mb))) continue; + if (METHODS_IN_OBJECT.contains(printSig(mb))) continue; list.add(mb); } addAllMethodBindings(list, rb.superclass()); |