From 059c4839bc1cd7620409287c0562a575ca4d835f Mon Sep 17 00:00:00 2001 From: Maurizio Cimadamore Date: Thu, 28 Mar 2013 11:39:04 +0000 Subject: [PATCH] 8010490: FindBugs: double assignments in LambdaToMethod.visitIdent Remove dead code from LambdaToMethod Reviewed-by: jjg --- .../com/sun/tools/javac/comp/LambdaToMethod.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/langtools/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java b/langtools/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java index 63894099f30..0413254ff4b 100644 --- a/langtools/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java +++ b/langtools/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java @@ -384,18 +384,6 @@ public class LambdaToMethod extends TreeTranslator { Symbol translatedSym = lambdaContext.getSymbolMap(CAPTURED_VAR).get(tree.sym); result = make.Ident(translatedSym).setType(tree.type); } else { - if (tree.sym.owner.kind == Kinds.TYP) { - for (Map.Entry encl_entry : lambdaContext.getSymbolMap(CAPTURED_THIS).entrySet()) { - if (tree.sym.isMemberOf((ClassSymbol) encl_entry.getKey(), types)) { - JCExpression enclRef = make.Ident(encl_entry.getValue()); - result = tree.sym.name == names._this - ? enclRef.setType(tree.type) - : make.Select(enclRef, tree.sym).setType(tree.type); - result = tree; - return; - } - } - } //access to untranslated symbols (i.e. compile-time constants, //members defined inside the lambda body, etc.) ) super.visitIdent(tree);