summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/VolatileShortRef.java
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2010-06-08 07:27:08 +0000
committerMartin Odersky <odersky@gmail.com>2010-06-08 07:27:08 +0000
commitd112ec1f8878b02094b68ebe849dbc8831a9c0d9 (patch)
tree5c88195fb5596c97963c51f93c94a0899ccb0d68 /src/library/scala/runtime/VolatileShortRef.java
parenta1e29d20aa7b49caf07e7992287eb0ba8208558a (diff)
downloadscala-d112ec1f8878b02094b68ebe849dbc8831a9c0d9.tar.gz
scala-d112ec1f8878b02094b68ebe849dbc8831a9c0d9.tar.bz2
scala-d112ec1f8878b02094b68ebe849dbc8831a9c0d9.zip
Fixed #2424. Review by dragos
Diffstat (limited to 'src/library/scala/runtime/VolatileShortRef.java')
-rwxr-xr-xsrc/library/scala/runtime/VolatileShortRef.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/library/scala/runtime/VolatileShortRef.java b/src/library/scala/runtime/VolatileShortRef.java
new file mode 100755
index 0000000000..ccb160fae9
--- /dev/null
+++ b/src/library/scala/runtime/VolatileShortRef.java
@@ -0,0 +1,20 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2002-2010, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+\* */
+
+
+
+package scala.runtime;
+
+
+public class VolatileShortRef implements java.io.Serializable {
+ private static final long serialVersionUID = 4218441291229072313L;
+
+ volatile public short elem;
+ public VolatileShortRef(short elem) { this.elem = elem; }
+ public String toString() { return java.lang.Short.toString(elem); }
+}