diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-11-13 14:59:18 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-11-13 14:59:18 +0000 |
commit | f3047df95f007d48d0049ff78448d27045b20445 (patch) | |
tree | 47e848f238fad00e117a4244ec69c229945301df /src/library/scala/Console.scala | |
parent | ac255eaf858397ee14b8ffafd8066b100d5e6be4 (diff) | |
download | scala-f3047df95f007d48d0049ff78448d27045b20445.tar.gz scala-f3047df95f007d48d0049ff78448d27045b20445.tar.bz2 scala-f3047df95f007d48d0049ff78448d27045b20445.zip |
Replaced == null()eq null(ne null)
Diffstat (limited to 'src/library/scala/Console.scala')
-rw-r--r-- | src/library/scala/Console.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/Console.scala b/src/library/scala/Console.scala index 8fa4285ab6..7cc8e9d4e9 100644 --- a/src/library/scala/Console.scala +++ b/src/library/scala/Console.scala @@ -142,7 +142,7 @@ object Console { * @param obj the object to print. */ def print(obj: Any): Unit = - out.print(if (obj == null) "null" else obj.toString()) + out.print(if (null == obj) "null" else obj.toString()) /** Flush the output stream. This function is required when partial * output (i.e. output not terminated by a new line character) has @@ -173,7 +173,7 @@ object Console { // todo: Uncurry def printf(text: String)(args: Any*): Unit = out.print( - if (text == null) "null" + if (text eq null) "null" else MessageFormat.format(text, textParams(args)) ) |