From 7669286edec331dedbb43b3a74c30df0e972257f Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 12 May 2015 10:36:32 +0200 Subject: [PATCH] Cleanup non-deviation. There was a "dotty deviation - does not work" in DottyBackendInterface, which does work after all. Reverting to more idiomatic code. --- src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index 4aa2e75dd115..a72ed1130fb3 100644 --- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -307,13 +307,8 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ private def emitAssocs(av: asm.AnnotationVisitor, assocs: List[(Name, Object)], bcodeStore: BCodeHelpers) (innerClasesStore: bcodeStore.BCInnerClassGen) = { - //for ((name, value) <- assocs) { // dotty deviation, does not work - - for (nv <- assocs) { - val name = nv._1 - val value = nv._2 + for ((name, value) <- assocs) emitArgument(av, name.toString, value.asInstanceOf[Tree], bcodeStore)(innerClasesStore) - } av.visitEnd() }