From fa0a027853d02fd6e53246ca223e2985f99d8d34 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 14 Nov 2010 12:17:38 +0000 Subject: Removed the brainfart where final methods aren't delegated. --- src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/eclipseAgent/lombok/eclipse') 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 list, TypeBinding binding) { - List ban = new ArrayList(); - 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 list, TypeBinding binding, List banList) { + private static void addAllMethodBindings(List 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()); -- cgit