summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-10 09:30:50 +0000
committerPaul Phillips <paulp@improving.org>2011-01-10 09:30:50 +0000
commit67042fd53e2508165954fb9200321278504757ac (patch)
tree8108be607b6780a5764905d2607a1e551cc6c7a9
parentc35d829d1840f87e800c21e55982e4b6d4516211 (diff)
downloadscala-67042fd53e2508165954fb9200321278504757ac.tar.gz
scala-67042fd53e2508165954fb9200321278504757ac.tar.bz2
scala-67042fd53e2508165954fb9200321278504757ac.zip
Unfinalized a couple unnecessarily final methods.
-rw-r--r--src/compiler/scala/tools/nsc/io/AbstractFile.scala19
1 files changed, 6 insertions, 13 deletions
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 <code>Global.getSourceFile()</code> 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 <code>null</code>. The argument
* <code>directory</code> tells whether to look for a directory or
* a regular file.
- *
- * @param name ...
- * @param directory ...
- * @return ...
*/
def lookupName(name: String, directory: Boolean): AbstractFile