diff options
author | Andrew Phillips <demobox1@yahoo.co.uk> | 2012-12-31 13:09:04 +0000 |
---|---|---|
committer | Andrew Phillips <demobox1@yahoo.co.uk> | 2013-04-22 19:31:29 +0200 |
commit | 6f47cafcd3e62714e81aa30e940d63043cb61e64 (patch) | |
tree | 6e27f4ba3e200d05a508dfe4a25740fa676070ef /src/library/scala/Long.scala | |
parent | 240fa301614e591e7684211642fedb4863b57a5c (diff) | |
download | scala-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/Long.scala')
-rw-r--r-- | src/library/scala/Long.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library/scala/Long.scala b/src/library/scala/Long.scala index 83adcda819..4d369ae010 100644 --- a/src/library/scala/Long.scala +++ b/src/library/scala/Long.scala @@ -606,6 +606,8 @@ object Long extends AnyValCompanion { /** Transform a value type into a boxed reference type. * + * Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToLong`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]]. + * * @param x the Long to be boxed * @return a java.lang.Long offering `x` as its underlying value. */ @@ -615,6 +617,8 @@ object Long extends AnyValCompanion { * method is not typesafe: it accepts any Object, but will throw * an exception if the argument is not a java.lang.Long. * + * Runtime implementation determined by `scala.runtime.BoxesRunTime.unboxToLong`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]]. + * * @param x the java.lang.Long to be unboxed. * @throws ClassCastException if the argument is not a java.lang.Long * @return the Long resulting from calling longValue() on `x` |