diff options
Diffstat (limited to 'src/library/scala/util/parsing')
-rw-r--r-- | src/library/scala/util/parsing/json/JSON.scala | 3 | ||||
-rw-r--r-- | src/library/scala/util/parsing/syntax/package.scala | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/library/scala/util/parsing/json/JSON.scala b/src/library/scala/util/parsing/json/JSON.scala index de2ae03a40..036964680e 100644 --- a/src/library/scala/util/parsing/json/JSON.scala +++ b/src/library/scala/util/parsing/json/JSON.scala @@ -41,9 +41,8 @@ object JSON extends Parser { * * @param input the given JSON string. * @return an optional list of of elements. - * - * @deprecated Use parseFull or parseRaw as needed. */ + @deprecated("Use parseFull or parseRaw as needed.", "2.8.0") def parse(input: String): Option[List[Any]] = parseRaw(input).map(unRaw).flatMap({ case l : List[_] => Some(l) case _ => None diff --git a/src/library/scala/util/parsing/syntax/package.scala b/src/library/scala/util/parsing/syntax/package.scala index 79343d5f80..547136c21d 100644 --- a/src/library/scala/util/parsing/syntax/package.scala +++ b/src/library/scala/util/parsing/syntax/package.scala @@ -14,6 +14,8 @@ import scala.util.parsing.combinator.token * be done, but it doesn't (yet) so it isn't. */ package object syntax { - @deprecated("Moved to scala.util.parsing.combinator.token") type Tokens = token.Tokens - @deprecated("Moved to scala.util.parsing.combinator.token") type StdTokens = token.StdTokens + @deprecated("Moved to scala.util.parsing.combinator.token", "2.8.0") + type Tokens = token.Tokens + @deprecated("Moved to scala.util.parsing.combinator.token", "2.8.0") + type StdTokens = token.StdTokens } |