diff options
author | Paul Phillips <paulp@improving.org> | 2010-12-20 06:38:16 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-12-20 06:38:16 +0000 |
commit | f40a20b0f418209715529ca5b373f641a5011e0b (patch) | |
tree | 64e8462fc2d0ddb6fc4192f64e73a628d8a4ae3e /src/swing | |
parent | 0e306e1f90f51efa2d423fd7df810f7cc8dfa915 (diff) | |
download | scala-f40a20b0f418209715529ca5b373f641a5011e0b.tar.gz scala-f40a20b0f418209715529ca5b373f641a5011e0b.tar.bz2 scala-f40a20b0f418209715529ca5b373f641a5011e0b.zip |
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.
Diffstat (limited to 'src/swing')
-rw-r--r-- | src/swing/scala/swing/Menu.scala | 6 |
1 files changed, 2 insertions, 4 deletions
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) |