squash some warnings

This commit is contained in:
Roland Kuhn 2016-01-17 16:37:45 +01:00
parent 3140e72265
commit e5baba2b29
42 changed files with 146 additions and 161 deletions

View file

@ -504,6 +504,7 @@ private[stream] object Fusing {
private def removeMapping[T](orig: T, map: ju.Map[T, List[T]]): T =
map.remove(orig) match {
case null null.asInstanceOf[T]
case Nil throw new IllegalStateException("mappings corrupted")
case x :: Nil x
case x :: xs
map.put(orig, xs)