From fa129e84e8390d7aadcae2f5214d57e85f8195e1 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Tue, 24 Jan 2006 16:35:15 +0000 Subject: use the mutable.Set interface of BitSet --- test/files/jvm/serialization.scala | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/files/jvm/serialization.scala') 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); -- cgit v1.2.3