From 67042fd53e2508165954fb9200321278504757ac Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 10 Jan 2011 09:30:50 +0000 Subject: Unfinalized a couple unnecessarily final methods. --- src/compiler/scala/tools/nsc/io/AbstractFile.scala | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/io/AbstractFile.scala b/src/compiler/scala/tools/nsc/io/AbstractFile.scala index 870cc64913..01aaa6c007 100644 --- a/src/compiler/scala/tools/nsc/io/AbstractFile.scala +++ b/src/compiler/scala/tools/nsc/io/AbstractFile.scala @@ -135,20 +135,17 @@ abstract class AbstractFile extends AnyRef with Iterable[AbstractFile] { /** size of this file if it is a concrete file. */ def sizeOption: Option[Int] = None - /** returns contents of file (if applicable) in a byte array. + /** Returns contents of file (if applicable) in a Char array. * warning: use Global.getSourceFile() to use the proper - * encoding when converting to the char array . - * - * @throws java.io.IOException + * encoding when converting to the char array. */ - final def toCharArray = new String(toByteArray).toCharArray + @throws(classOf[IOException]) + def toCharArray = new String(toByteArray).toCharArray - /** returns contents of file (if applicable) in a byte array. - * - * @throws java.io.IOException + /** Returns contents of file (if applicable) in a byte array. */ @throws(classOf[IOException]) - final def toByteArray: Array[Byte] = { + def toByteArray: Array[Byte] = { val in = input var rest = sizeOption.get val arr = new Array[Byte](rest) @@ -169,10 +166,6 @@ abstract class AbstractFile extends AnyRef with Iterable[AbstractFile] { * name. If there is no such file, returns null. The argument * directory tells whether to look for a directory or * a regular file. - * - * @param name ... - * @param directory ... - * @return ... */ def lookupName(name: String, directory: Boolean): AbstractFile -- cgit v1.2.3