diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-01-24 16:35:15 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-01-24 16:35:15 +0000 |
commit | fa129e84e8390d7aadcae2f5214d57e85f8195e1 (patch) | |
tree | 3fe2d7d22eec96786916fa59b49c365554be70b5 /test | |
parent | f0f49df4735d7aed7b5fb473eaa061ed2098b274 (diff) | |
download | scala-fa129e84e8390d7aadcae2f5214d57e85f8195e1.tar.gz scala-fa129e84e8390d7aadcae2f5214d57e85f8195e1.tar.bz2 scala-fa129e84e8390d7aadcae2f5214d57e85f8195e1.zip |
use the mutable.Set interface of BitSet
Diffstat (limited to 'test')
-rw-r--r-- | test/files/jvm/serialization.scala | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/files/jvm/serialization.scala b/test/files/jvm/serialization.scala index f55af0d46f..f33458fac7 100644 --- a/test/files/jvm/serialization.scala +++ b/test/files/jvm/serialization.scala @@ -93,7 +93,9 @@ object Test2_immutable { .incl(Pair("layers", 2)) .incl(Pair("title", 3)); - val x3 = new BitSet(4, Array(2), true); + val x3 = { val bs = new collection.mutable.BitSet(); bs += 2; bs += 3; + bs.toImmutable; + }; val x4 = new ListSet[Int]().incl(3).incl(5); @@ -141,9 +143,9 @@ object Test3_mutable { x1 ++= Test2_immutable.x1; val x2 = new BitSet(); - x2.set(0); - x2.set(8); - x2.set(9); + x2 += 0; + x2 += 8; + x2 += 9; val x3 = new HashSet[String]; x3 ++= Test2_immutable.x1.map(p => p._1); |