diff options
author | mihaylov <mihaylov@epfl.ch> | 2003-10-29 09:42:39 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2003-10-29 09:42:39 +0000 |
commit | 63035c10a83415198030b67ee82e3b2ae99a0783 (patch) | |
tree | 65e862cfb9e33a9e07e64b3feea1e815a54be8b8 | |
parent | f6dab0da8d27f605677fe295a57ffa8a4f410b63 (diff) | |
download | scala-63035c10a83415198030b67ee82e3b2ae99a0783.tar.gz scala-63035c10a83415198030b67ee82e3b2ae99a0783.tar.bz2 scala-63035c10a83415198030b67ee82e3b2ae99a0783.zip |
- specified the exact return type of the 'def u...
- specified the exact return type of the 'def undo = error(...)' method as Unit;
this avoids creating unnecessary bridge method
-rw-r--r-- | sources/scala/collection/mutable/ObservableMap.scala | 2 | ||||
-rw-r--r-- | sources/scala/collection/mutable/ObservableSet.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sources/scala/collection/mutable/ObservableMap.scala b/sources/scala/collection/mutable/ObservableMap.scala index 52de275828..40aeddca77 100644 --- a/sources/scala/collection/mutable/ObservableMap.scala +++ b/sources/scala/collection/mutable/ObservableMap.scala @@ -43,6 +43,6 @@ abstract class ObservableMap[A, B, This <: ObservableMap[A, B, This]]: This abstract override def clear: Unit = { super.clear; - publish(new Reset() with Undo { def undo = error("cannot undo"); }); + publish(new Reset() with Undo { def undo: Unit = error("cannot undo"); }); } } diff --git a/sources/scala/collection/mutable/ObservableSet.scala b/sources/scala/collection/mutable/ObservableSet.scala index e3ec93ad05..0bd4cef331 100644 --- a/sources/scala/collection/mutable/ObservableSet.scala +++ b/sources/scala/collection/mutable/ObservableSet.scala @@ -33,6 +33,6 @@ abstract class ObservableSet[A, This <: ObservableSet[A, This]]: This abstract override def clear: Unit = { super.clear; - publish(new Reset() with Undo { def undo = error("cannot undo"); }); + publish(new Reset() with Undo { def undo: Unit = error("cannot undo"); }); } } |