Since PlayFramework doesn't seem to allow primitive java types (e.g int, long) in routes, I've had to resort to using Integer in the routes, e.g:
GET /paginate/:page controllers.Foo.paginate(page: Integer)
However, when starting the app, I get a ton of warnings saying:
[warn] /project/target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala:351: type Integer is deprecated: use java.lang.Integer instead
[warn] def paginate(page:Integer) = new play.api.mvc.HandlerRef(
Wtf is this about? Do I now have to specify java.lang.Integer in all my routes? Or am I missing something?
Intinstead?Int?Int, a 32-bit signed integer (equivalent to Java's int primitive type). Reference here scala-lang.org/api/current/index.html#scala.Int