summaryrefslogtreecommitdiff
path: root/src/library/scala/Short.scala
diff options
context:
space:
mode:
authorAndrew Phillips <demobox1@yahoo.co.uk>2012-12-31 13:09:04 +0000
committerAndrew Phillips <demobox1@yahoo.co.uk>2013-04-22 19:31:29 +0200
commit6f47cafcd3e62714e81aa30e940d63043cb61e64 (patch)
tree6e27f4ba3e200d05a508dfe4a25740fa676070ef /src/library/scala/Short.scala
parent240fa301614e591e7684211642fedb4863b57a5c (diff)
downloadscala-6f47cafcd3e62714e81aa30e940d63043cb61e64.tar.gz
scala-6f47cafcd3e62714e81aa30e940d63043cb61e64.tar.bz2
scala-6f47cafcd3e62714e81aa30e940d63043cb61e64.zip
SI-6898 Document AnyVal box and unbox implemention by BoxesRunTime
- Added @boxRunTimeDoc@ and @unboxRunTimeDoc@ tokens to AnyVals - Doc comments refer to BoxesRunTime.java in the Scala repo - No comment for Unit
Diffstat (limited to 'src/library/scala/Short.scala')
-rw-r--r--src/library/scala/Short.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library/scala/Short.scala b/src/library/scala/Short.scala
index cdd298e542..4f91c51550 100644
--- a/src/library/scala/Short.scala
+++ b/src/library/scala/Short.scala
@@ -606,6 +606,8 @@ object Short extends AnyValCompanion {
/** Transform a value type into a boxed reference type.
*
+ * Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToShort`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
+ *
* @param x the Short to be boxed
* @return a java.lang.Short offering `x` as its underlying value.
*/
@@ -615,6 +617,8 @@ object Short extends AnyValCompanion {
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Short.
*
+ * Runtime implementation determined by `scala.runtime.BoxesRunTime.unboxToShort`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
+ *
* @param x the java.lang.Short to be unboxed.
* @throws ClassCastException if the argument is not a java.lang.Short
* @return the Short resulting from calling shortValue() on `x`