From c5d9b7e6a99f253d6da941610c58d9d9e1a02925 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 28 Apr 2011 16:26:05 +0000 Subject: I wrote a warning when nullary methods return U... I wrote a warning when nullary methods return Unit. I wimped out of including it in this patch because we had about 200 of them, and that's what is fixed in this patch. I will add the warning to some kind of "-Xlint" feature after 2.9. This is motivated at least partly by the resolution of #4506, which indicates the distinction between "def foo()" and "def foo" will continue to jab its pointy stick into our eyes, so I believe we have a minimal duty of at least following our own advice about what they mean and not making a semirandom choice as to whether a method has parens or not. Review by community. --- src/detach/library/scala/runtime/RemoteRef.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/detach/library') diff --git a/src/detach/library/scala/runtime/RemoteRef.scala b/src/detach/library/scala/runtime/RemoteRef.scala index 9b692fb415..d8444e5220 100644 --- a/src/detach/library/scala/runtime/RemoteRef.scala +++ b/src/detach/library/scala/runtime/RemoteRef.scala @@ -169,7 +169,7 @@ object RemoteRef { /*extends Thread { private def warning(msg: String) { Debug.warning("[RemoteRef] "+msg) } private def error(msg: String) { Debug.error("[RemoteRef] "+msg) } - private def printDebugInfos { + private def printDebugInfos() { def property(name: String): String = name+"="+( try { System.getProperty(name, "") } -- cgit v1.2.3