summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-10-12 17:43:43 +0000
committermichelou <michelou@epfl.ch>2006-10-12 17:43:43 +0000
commitec04190880e49b0d32651fe04e27a67bd952bcdd (patch)
treead2952f59fc697d58bdfc5dbfba5844e12ab24c7 /src
parentdcfd04956a7103bf47487af204360d9c0a7814f9 (diff)
downloadscala-ec04190880e49b0d32651fe04e27a67bd952bcdd.tar.gz
scala-ec04190880e49b0d32651fe04e27a67bd952bcdd.tar.bz2
scala-ec04190880e49b0d32651fe04e27a67bd952bcdd.zip
fixed both methods 'reportError' in scala/io/So...
fixed both methods 'reportError' in scala/io/Source.scala
Diffstat (limited to 'src')
-rw-r--r--src/actors/scala/actors/ActorProxy.scala10
-rw-r--r--src/actors/scala/actors/Reaction.scala10
-rw-r--r--src/library/scala/io/Source.scala13
3 files changed, 27 insertions, 6 deletions
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 <code>out</code>.
+ *
* @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 */