summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/reporters/ConsoleReporter.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-01-21 16:01:35 +0000
committermichelou <michelou@epfl.ch>2008-01-21 16:01:35 +0000
commite5237247c91d05fd981e5f5a50fa543ad58890ed (patch)
treee4b0b9e946698fe877ff6b4380a5618360cffc52 /src/compiler/scala/tools/nsc/reporters/ConsoleReporter.scala
parent94a67b3673d466a80362035db6211e5d73e40b79 (diff)
downloadscala-e5237247c91d05fd981e5f5a50fa543ad58890ed.tar.gz
scala-e5237247c91d05fd981e5f5a50fa543ad58890ed.tar.bz2
scala-e5237247c91d05fd981e5f5a50fa543ad58890ed.zip
removed some warnings
Diffstat (limited to 'src/compiler/scala/tools/nsc/reporters/ConsoleReporter.scala')
-rw-r--r--src/compiler/scala/tools/nsc/reporters/ConsoleReporter.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/reporters/ConsoleReporter.scala b/src/compiler/scala/tools/nsc/reporters/ConsoleReporter.scala
index 6960280986..acb78f9df3 100644
--- a/src/compiler/scala/tools/nsc/reporters/ConsoleReporter.scala
+++ b/src/compiler/scala/tools/nsc/reporters/ConsoleReporter.scala
@@ -1,5 +1,5 @@
/* NSC -- new Scala compiler
- * Copyright 2002-2007 LAMP/EPFL
+ * Copyright 2002-2008 LAMP/EPFL
* @author Martin Odersky
*/
// $Id$
@@ -40,7 +40,7 @@ class ConsoleReporter(val settings: Settings, reader: BufferedReader, writer: Pr
countElementsAsString((severity).count, label(severity))
/** Prints the message. */
- def printMessage(msg: String) = writer.println(msg)
+ def printMessage(msg: String) { writer.println(msg) }
/** Prints the message with the given position indication. */
def printMessage(posIn: Position, msg: String) {
@@ -49,7 +49,7 @@ class ConsoleReporter(val settings: Settings, reader: BufferedReader, writer: Pr
val buf = new StringBuilder(msg)
if (!pos.source.isEmpty) {
buf.insert(0, " ")
- buf.insert(0, pos.line.map(ln => ":" + pos.line.get + ":").get(":"))
+ buf.insert(0, pos.line.map(ln => ":" + pos.line.get + ":").getOrElse(":"))
}
//println(getSource.file)
pos match {