Skip to content
Browse files

Merge branch 'xsd-boolean-fix' into stable-xsd-boolean-fix

  • Loading branch information...
2 parents c84203d + 2c200ed commit e1f5203cbf1dc0aa85cebd5843317d9cf9b61a7e @rssh committed Dec 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cli/src/main/resources/scalaxb.scala.template
View
2 cli/src/main/resources/scalaxb.scala.template
@@ -174,7 +174,7 @@ trait XMLStandardTypes {
}
implicit lazy val __BooleanXMLFormat: XMLFormat[Boolean] = new XMLFormat[Boolean] {
- def reads(seq: scala.xml.NodeSeq, stack: List[ElemName]): Either[String, Boolean] = try {
+ def reads(seq: scala.xml.NodeSeq, stack: List[ElemName]): Either[String, Boolean] =
seq.text match {
case "1" | "true" => Right(true)
case "0" | "false" => Right(false)

0 comments on commit e1f5203

Please sign in to comment.
Something went wrong with that request. Please try again.