From 63035c10a83415198030b67ee82e3b2ae99a0783 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Wed, 29 Oct 2003 09:42:39 +0000 Subject: - 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 --- sources/scala/collection/mutable/ObservableMap.scala | 2 +- sources/scala/collection/mutable/ObservableSet.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sources') 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"); }); } } -- cgit v1.2.3