--- a/src/Pure/System/swing_thread.scala	Mon Aug 05 10:55:46 2013 +0200
+++ b/src/Pure/System/swing_thread.scala	Mon Aug 05 11:01:17 2013 +0200
@@ -16,10 +16,17 @@
 {
   /* checks */
 
-  def assert() = Predef.assert(SwingUtilities.isEventDispatchThread())
-  def require() = Predef.require(SwingUtilities.isEventDispatchThread())
+  def assert[A](body: => A) =
+  {
+    Predef.assert(SwingUtilities.isEventDispatchThread())
+    body
+  }
 
-  def required[A](body: => A): A = { require(); body }
+  def require[A](body: => A) =
+  {
+    Predef.require(SwingUtilities.isEventDispatchThread())
+    body
+  }
 
 
   /* main dispatch queue */