diff options
author | NAME <USER@epfl.ch> | 2008-03-07 17:58:30 +0000 |
---|---|---|
committer | NAME <USER@epfl.ch> | 2008-03-07 17:58:30 +0000 |
commit | e8e46b9fe0c4c2fd6c4a5cb8bb056e271589fd9a (patch) | |
tree | 6ef8ff619f6e3bf5854e8721fff6c75946b16d4e | |
parent | 190093c4ea9e832cb3aed5c2667071efad856704 (diff) | |
download | scala-e8e46b9fe0c4c2fd6c4a5cb8bb056e271589fd9a.tar.gz scala-e8e46b9fe0c4c2fd6c4a5cb8bb056e271589fd9a.tar.bz2 scala-e8e46b9fe0c4c2fd6c4a5cb8bb056e271589fd9a.zip |
Applied patch from #598
-rw-r--r-- | src/library/scala/Symbol.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Symbol.scala b/src/library/scala/Symbol.scala index dd9bfabbf8..6f7ca958c7 100644 --- a/src/library/scala/Symbol.scala +++ b/src/library/scala/Symbol.scala @@ -56,7 +56,7 @@ object Symbol { * @return the unique reference to this string. */ def apply(name: String): Symbol = internedSymbols.synchronized { - internedSymbols.get(name).map(_.get).getOrElse(None) match { + internedSymbols.get(name).flatMap(_.get) match { case Some(sym) => sym case _ => val sym = new Symbol(name) |