Please use the real @deprecated tag if it's what you really want to say, see: http://www.scala-lang.org/api/2.10.2/index.html#scala.deprecated

But isn't there a way to use the new API with arguments so that the output is the exact one of old API ? That would allows to have only one def here.