summaryrefslogtreecommitdiff
path: root/test/files/jvm/serialization.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-01-18 21:32:57 +0000
committermichelou <michelou@epfl.ch>2008-01-18 21:32:57 +0000
commit3267a516f95b4ab0a8c375d5e8f53204f05289af (patch)
treebb078554fd3300266ef9f9c53e10c65ec1c49597 /test/files/jvm/serialization.scala
parentf614f2eb68959f78cef6db3d2a1cd54c23567b9f (diff)
downloadscala-3267a516f95b4ab0a8c375d5e8f53204f05289af.tar.gz
scala-3267a516f95b4ab0a8c375d5e8f53204f05289af.tar.bz2
scala-3267a516f95b4ab0a8c375d5e8f53204f05289af.zip
removed warning
Diffstat (limited to 'test/files/jvm/serialization.scala')
-rwxr-xr-xtest/files/jvm/serialization.scala14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/files/jvm/serialization.scala b/test/files/jvm/serialization.scala
index 3049d7815b..2525bed803 100755
--- a/test/files/jvm/serialization.scala
+++ b/test/files/jvm/serialization.scala
@@ -94,10 +94,10 @@ object Test2_immutable {
Pair("title", 3)
)
- val x2 = new ListMap[String, Int]
- .incl(Pair("buffers", 20))
- .incl(Pair("layers", 2))
- .incl(Pair("title", 3))
+ val x2 = new ListMap[String, Int] +
+ Pair("buffers", 20) +
+ Pair("layers", 2) +
+ Pair("title", 3)
val x3 = {
val bs = new collection.mutable.BitSet()
@@ -105,15 +105,15 @@ object Test2_immutable {
bs.toImmutable
}
- val x4 = new ListSet[Int]().incl(3).incl(5)
+ val x4 = new ListSet[Int]() + 3 + 5
val x5 = new Queue("a", "b", "c")
val x6 = new Stack().push("a", "b", "c")
- val x7 = new TreeMap[Int, String] + 42 -> "FortyTwo"
+ val x7 = new TreeMap[Int, String] + Pair(42, "FortyTwo")
- val x8 = new TreeSet[Int]().incl(2).incl(0)
+ val x8 = new TreeSet[Int]() + 2 + 0
try {
val y1: List[Pair[String, Int]] = Serialize.read(Serialize.write(x1))