Skip to content

Commit

Permalink
Fix wildcard exception match warnings in mapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowfiend committed Apr 13, 2014
1 parent 965c04e commit 241dbfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ abstract class MappedIntIndex[T<:Mapper[T]](owner : T) extends MappedInt[T](owne
val what = if (in.startsWith(name + "=")) in.substring((name + "=").length) else in
Full(Integer.parseInt(what))
} catch {
case _ => Empty
case _: Exception => Empty
}
}

Expand All @@ -238,7 +238,7 @@ abstract class MappedIntIndex[T<:Mapper[T]](owner : T) extends MappedInt[T](owne
try {
convertKey(in.toString)
} catch {
case _ => Empty
case _: Exception => Empty
}
}

Expand Down

0 comments on commit 241dbfa

Please sign in to comment.