diff options
author | Paul Phillips <paulp@improving.org> | 2011-05-19 20:05:44 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-05-19 20:05:44 +0000 |
commit | 7595671ec3929aa4ac978826521300a900250214 (patch) | |
tree | c9ca84eaa6eae78ebde292b10106a22998c75183 /test/files | |
parent | ccceeeb179c4d60155b6c5c9a96c8497ce25398f (diff) | |
download | scala-7595671ec3929aa4ac978826521300a900250214.tar.gz scala-7595671ec3929aa4ac978826521300a900250214.tar.bz2 scala-7595671ec3929aa4ac978826521300a900250214.zip |
Suppress unwanted noise generated by javac when...
Suppress unwanted noise generated by javac when compiling test case for
#1263.
formerly the test case caused this to be printed:
Note: test/files/pos/t1263/Test.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
we suppress this using @SuppressWarnings.
Contributed by Seth Tisue, no review.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/deprecation.cmds | 3 | ||||
-rw-r--r-- | test/files/jvm/deprecation/Test_1.scala | 6 | ||||
-rw-r--r-- | test/files/pos/t1263/Test.java | 1 |
3 files changed, 4 insertions, 6 deletions
diff --git a/test/files/jvm/deprecation.cmds b/test/files/jvm/deprecation.cmds deleted file mode 100644 index 4c0f73c58b..0000000000 --- a/test/files/jvm/deprecation.cmds +++ /dev/null @@ -1,3 +0,0 @@ -javac Defs.java -scalac Test_1.scala -javac Use_2.java diff --git a/test/files/jvm/deprecation/Test_1.scala b/test/files/jvm/deprecation/Test_1.scala index 92173f94e2..0a5b607037 100644 --- a/test/files/jvm/deprecation/Test_1.scala +++ b/test/files/jvm/deprecation/Test_1.scala @@ -8,9 +8,9 @@ class Test { val w = i.buz() } - @deprecated("no longer!") class Inner { - @deprecated("uncool") def f: Int = 1 - @deprecated("this one as well!") var g = -1 + @deprecated("no longer!", "") class Inner { + @deprecated("uncool", "") def f: Int = 1 + @deprecated("this one as well!", "") var g = -1 } } diff --git a/test/files/pos/t1263/Test.java b/test/files/pos/t1263/Test.java index 6ca88c21a1..1718a99090 100644 --- a/test/files/pos/t1263/Test.java +++ b/test/files/pos/t1263/Test.java @@ -4,6 +4,7 @@ import java.rmi.RemoteException; import test.Map; +@SuppressWarnings("unchecked") public class Test implements Map<String, String> { public Map.MapTo plus(String o) { return null; |