Skip to content

Commit

Permalink
tweak to remove deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Jun 16, 2019
1 parent 82116f5 commit 0c7dac0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ object ParameterSpec {

def int() = ParameterSpec[Int](IntegerParamType, _.toInt, _.toString)

def integer() = ParameterSpec[Integer](IntegerParamType, new Integer(_), _.toString)
def integer() = ParameterSpec[Integer](IntegerParamType, i => Integer.parseInt(i), _.toString)

def json[T](jsonLib: JsonLibrary[T, _] = Argo) = ParameterSpec[T](ObjectParamType, jsonLib.JsonFormat.parse, jsonLib.JsonFormat.compact)

Expand Down

0 comments on commit 0c7dac0

Please sign in to comment.