From f55b965036e18fd833deecca0367cc192cf9818e Mon Sep 17 00:00:00 2001 From: michelou Date: Sun, 25 Feb 2007 22:33:42 +0000 Subject: updated scaladoc comments --- src/library/scala/Annotation.scala | 3 ++- src/library/scala/compat/Platform.scala | 22 ++++++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/library/scala/Annotation.scala b/src/library/scala/Annotation.scala index 1618e6aed7..543e19791e 100644 --- a/src/library/scala/Annotation.scala +++ b/src/library/scala/Annotation.scala @@ -15,7 +15,8 @@ package scala * A base class for annotations. Annotations extending this class directly * are not preserved for the Scala type checker and are also not stored * as Java annotations in classfiles. To enable either or both of these, - * one needs to inherit from StaticAnnotation or/and + * one needs to inherit from + * StaticAnnotation or/and * ClassfileAnnotation. *

* diff --git a/src/library/scala/compat/Platform.scala b/src/library/scala/compat/Platform.scala index 11e90a0789..ac099f4d69 100644 --- a/src/library/scala/compat/Platform.scala +++ b/src/library/scala/compat/Platform.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** +** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ @@ -9,7 +9,7 @@ // $Id$ -package scala.compat; +package scala.compat import java.lang.System @@ -19,10 +19,23 @@ object Platform { type StackOverflowError = java.lang.StackOverflowError + /** + * @param src .. + * @param srcPos .. + * @param dest .. + * @param destPos .. + * @param length .. + */ def arraycopy(src: AnyRef, srcPos: Int, dest: AnyRef, destPos: Int, length: Int): Unit = System.arraycopy(src, srcPos, dest, destPos, length) - /** create array of the same type as arrayInstance with the given length */ + /** Create array of the same type as arrayInstance with the given + * length. + * + * @param elemClass .. + * @param length .. + * @return .. + */ def createArray(elemClass: Class, length: Int): AnyRef = java.lang.reflect.Array.newInstance(elemClass, length) @@ -35,3 +48,4 @@ object Platform { def collectGarbage: Unit = System.gc() } + -- cgit v1.2.3