From 142560739a368d569e170f581f7f730cb07bf79d Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 15 Feb 2007 17:28:32 +0000 Subject: fixed tests --- test/files/jvm5/attributes.scala | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/files/jvm5/attributes.scala') diff --git a/test/files/jvm5/attributes.scala b/test/files/jvm5/attributes.scala index 1e38db22ce..59e5e4facd 100644 --- a/test/files/jvm5/attributes.scala +++ b/test/files/jvm5/attributes.scala @@ -2,7 +2,7 @@ import java.lang.Deprecated object Test1 { class Foo { - [remote] + @remote def foo: Unit = () } def run: Unit = { @@ -15,7 +15,8 @@ object Test2 { import java.io.{BufferedReader,FileReader, IOException} class Reader(fname: String) { private val in = new BufferedReader(new FileReader(fname)) - [throws(classOf[IOException])] + + @throws(classOf[IOException]) def read() = in.read() } def run: Unit = { @@ -37,7 +38,7 @@ public class Main { */ object Test3 { class Foo { - [Deprecated] + @Deprecated def foo: Unit = () } def run: Unit = { @@ -67,9 +68,9 @@ public class Main { */ object Test4 { import java.lang.annotation._ - [Retention(RetentionPolicy.RUNTIME)] + @Retention(RetentionPolicy.RUNTIME) class Source(url: String, mail: String) extends scala.Annotation - [Source("http://scala.epfl.ch", "scala@lists.epfl.ch")] + @Source("http://scala.epfl.ch", "scala@lists.epfl.ch") class Foo def run: Unit = { val clazz = classOf[Foo] -- cgit v1.2.3