From ec04190880e49b0d32651fe04e27a67bd952bcdd Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 12 Oct 2006 17:43:43 +0000 Subject: fixed both methods 'reportError' in scala/io/So... fixed both methods 'reportError' in scala/io/Source.scala --- src/actors/scala/actors/ActorProxy.scala | 10 ++++++++++ src/actors/scala/actors/Reaction.scala | 10 ++++++++++ src/library/scala/io/Source.scala | 13 +++++++------ 3 files changed, 27 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/actors/scala/actors/ActorProxy.scala b/src/actors/scala/actors/ActorProxy.scala index 9e0ce052e9..69819cb605 100644 --- a/src/actors/scala/actors/ActorProxy.scala +++ b/src/actors/scala/actors/ActorProxy.scala @@ -1,3 +1,13 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2005-2006, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id$ + package scala.actors /** diff --git a/src/actors/scala/actors/Reaction.scala b/src/actors/scala/actors/Reaction.scala index 80ecd5c8a2..ff8b236371 100644 --- a/src/actors/scala/actors/Reaction.scala +++ b/src/actors/scala/actors/Reaction.scala @@ -1,3 +1,13 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2005-2006, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id: $ + package scala.actors /** diff --git a/src/library/scala/io/Source.scala b/src/library/scala/io/Source.scala index a384af99df..685014aa87 100644 --- a/src/library/scala/io/Source.scala +++ b/src/library/scala/io/Source.scala @@ -224,7 +224,7 @@ abstract class Source extends Iterator[Char] { if (!it.hasNext) // this should not happen throw new java.lang.IllegalArgumentException( - "line "+line+" does not exist?!" + "line " + line + " does not exist?!" ); var ch = it.next @@ -258,22 +258,23 @@ abstract class Source extends Iterator[Char] { ch } - /** reports an error message to console. + /** Reports an error message to console. * * @param pos ... * @param msg the error message to report */ def reportError(pos: Int, msg: String): Unit = - report(pos, msg, java.lang.System.out) + reportError(pos, msg, java.lang.System.out) - /** + /** Reports an error message to the output stream out. + * * @param pos ... * @param msg the error message to report * @param out ... */ def reportError(pos: Int, msg: String, out: PrintStream): Unit = { nerrors = nerrors + 1 - report(pos, msg, java.lang.System.out) + report(pos, msg, out) } /** @@ -311,7 +312,7 @@ abstract class Source extends Iterator[Char] { */ def reportWarning(pos: Int, msg: String, out: PrintStream): Unit = { nwarnings = nwarnings + 1 - report(pos, "warning! "+msg, out) + report(pos, "warning! " + msg, out) } /** the actual reset method */ -- cgit v1.2.3