From f40a20b0f418209715529ca5b373f641a5011e0b Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 20 Dec 2010 06:38:16 +0000 Subject: I'm wandering around trunk looking for slowness. are constant distractions which I've meant forever to fix anyway, such as the importing of collection.mutable._ (or any other package with lots of reused names.) Why is this relevant to performance? Well, var x = new HashSet[Int] What's that? What does 'x += 1' mean? These are questions we can all live without. There's almost nothing left which references HashSet or HashMap or Stack or other ambiguous classes without a qualifier: I can finish trunk but I can't keep it clean on my own. (Where should I be writing this stuff down, I wonder.) No review. --- src/swing/scala/swing/Menu.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/swing') diff --git a/src/swing/scala/swing/Menu.scala b/src/swing/scala/swing/Menu.scala index 21d1d7ae12..4419c71f8a 100644 --- a/src/swing/scala/swing/Menu.scala +++ b/src/swing/scala/swing/Menu.scala @@ -6,11 +6,9 @@ ** |/ ** \* */ - - package scala.swing -import scala.collection.mutable._ +import scala.collection.mutable import javax.swing._ object MenuBar { @@ -25,7 +23,7 @@ object MenuBar { class MenuBar extends Component with SequentialContainer.Wrapper { override lazy val peer: JMenuBar = new JMenuBar with SuperMixin - def menus: Seq[Menu] = contents.filter(_.isInstanceOf[Menu]).map(_.asInstanceOf[Menu]) + def menus: mutable.Seq[Menu] = contents.filter(_.isInstanceOf[Menu]).map(_.asInstanceOf[Menu]) // Not implemented by Swing //def helpMenu: Menu = UIElement.cachedWrapper(peer.getHelpMenu) -- cgit v1.2.3