diff options
author | Martin Odersky <odersky@gmail.com> | 2007-03-08 14:35:44 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-03-08 14:35:44 +0000 |
commit | a0476f0882fd88137b9f539327dd5ee0fe76f933 (patch) | |
tree | 86f267aa3bdc638730fe9dd65650d08d3bf6ce35 /src/library | |
parent | acacbf69ba64017137c8483ba43daa62057f73a7 (diff) | |
download | scala-a0476f0882fd88137b9f539327dd5ee0fe76f933.tar.gz scala-a0476f0882fd88137b9f539327dd5ee0fe76f933.tar.bz2 scala-a0476f0882fd88137b9f539327dd5ee0fe76f933.zip |
@unsealed->@unchecked
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/io/BytePickle.scala | 4 | ||||
-rw-r--r-- | src/library/scala/unsealed.scala | 31 |
2 files changed, 4 insertions, 31 deletions
diff --git a/src/library/scala/io/BytePickle.scala b/src/library/scala/io/BytePickle.scala index 91730cb5a4..c41b231460 100644 --- a/src/library/scala/io/BytePickle.scala +++ b/src/library/scala/io/BytePickle.scala @@ -288,7 +288,7 @@ object BytePickle { def pairToList(p: (a,List[a])): List[a] = p._1 :: p._2; def listToPair(l: List[a]): (a,List[a]) = - (l: @unsealed) match { case x :: xs => (x, xs) } + (l: @unchecked) match { case x :: xs => (x, xs) } if (n == 0) ulift(Nil) else @@ -299,7 +299,7 @@ object BytePickle { def pairToList(p: (a,List[a])): List[a] = p._1 :: p._2; def listToPair(l: List[a]): (a,List[a]) = - (l: @unsealed) match { case x :: xs => (x, xs) } + (l: @unchecked) match { case x :: xs => (x, xs) } if (n == 0) lift(Nil) else diff --git a/src/library/scala/unsealed.scala b/src/library/scala/unsealed.scala index 2711085067..ff59000579 100644 --- a/src/library/scala/unsealed.scala +++ b/src/library/scala/unsealed.scala @@ -11,33 +11,6 @@ package scala -/** <p> - * An annotation that gets applied to a selector in a match expression. - * If it is present, exhaustiveness warnings for that expression will be - * suppressed. - * </p> - * <p> - * For example, compiling the code: - * </p><pre> - * <b>object</b> test <b>extends</b> Application { - * <b>def</b> f(x: Option[int]) = x <b>match</b> { - * <b>case</b> Some(y) => y - * } - * f(None) - * }</pre> - * <p> - * will display the following warning: - * </p><pre> - * test.scala:2: warning: does not cover case {object None} - * def f(x: Option[int]) = x match { - * ^ - * one warning found</pre> - * <p> - * The above message may be suppressed by substituting the expression - * <code>x</code> with <code>(x: @unsealed)</code>. Then the - * modified code will compile silently, but, in any case, a - * <a href="MatchError.html"><code>MatchError</code></a> - * will be raised at runtime. - * </p> +/** @deprecated use @unchecked instead */ -class unsealed extends Annotation {} +@deprecated class unsealed extends Annotation {} |