Last Updated: February 25, 2016
·
4.851K
· meerkatdev

Scala @deprecated annotation

When in Scala you want to deprecate a method, use the

@deprecated( description: String, since_version: String )

tag, example:

@deprecated( "use getFoo", "1.5" ) def getFuu = {...}

Another suggestion: When you plan to substitute a method successively, write its name uncompletely! (of course, still understandable)
It will be better then, because you could make a mental note that is a function to improve

Docs:
http://www.scala-lang.org/api/current/index.html#scala.deprecated