summaryrefslogtreecommitdiff
path: root/src/library/scala/compat/Platform.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-02-25 22:33:42 +0000
committermichelou <michelou@epfl.ch>2007-02-25 22:33:42 +0000
commitf55b965036e18fd833deecca0367cc192cf9818e (patch)
tree8c9e58648133d727a9bb9bd2144443ce29ab27a5 /src/library/scala/compat/Platform.scala
parentb31ceb487d7487a64c7d9955e1422bdc939f7998 (diff)
downloadscala-f55b965036e18fd833deecca0367cc192cf9818e.tar.gz
scala-f55b965036e18fd833deecca0367cc192cf9818e.tar.bz2
scala-f55b965036e18fd833deecca0367cc192cf9818e.zip
updated scaladoc comments
Diffstat (limited to 'src/library/scala/compat/Platform.scala')
-rw-r--r--src/library/scala/compat/Platform.scala22
1 files changed, 18 insertions, 4 deletions
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()
}
+