remove spurious unchecked warning

This commit is contained in:
Mark Harrah 2010-09-13 19:42:40 -04:00
parent aea757ed18
commit 15abc87c45
1 changed files with 3 additions and 2 deletions

View File

@ -140,10 +140,11 @@ object ClasspathProject
} }
def parseSimpleConfigurations(confString: String): Map[String, String] = def parseSimpleConfigurations(confString: String): Map[String, String] =
confString.split(";").map( confString.split(";").map( conf =>
_.split("->",2).toList.map(_.trim) match { conf.split("->",2).toList.map(_.trim) match {
case x :: Nil => (x,x) case x :: Nil => (x,x)
case x :: y :: Nil => (x,y) case x :: y :: Nil => (x,y)
case _ => error("Invalid configuration '" + conf + "'") // shouldn't get here
} }
).toMap ).toMap
} }