File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
jsoniter-scala-macros/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/macros Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1325,13 +1325,13 @@ object JsonCodecMaker {
13251325 else if (tpe =:= definitions.FloatTpe || tpe =:= typeOf[java.lang.Float ]) q " 0f "
13261326 else if (tpe =:= definitions.DoubleTpe || tpe =:= typeOf[java.lang.Double ]) q " 0.0 "
13271327 else if (isOption(tpe, types.tail)) q " _root_.scala.None "
1328- else if (tpe <:< typeOf[mutable.BitSet ]) q " ${scalaCollectionCompanion(tpe)} .empty "
1329- else if (tpe <:< typeOf[BitSet ]) withNullValueFor(tpe)(q " ${scalaCollectionCompanion(tpe)} .empty " )
1328+ else if (tpe <:< typeOf[mutable.BitSet ]) q " new _root_.scala.collection.mutable.BitSet "
1329+ else if (tpe <:< typeOf[collection. BitSet ]) withNullValueFor(tpe)(q " _root_.scala.collection.immutable.BitSet .empty" )
13301330 else if (tpe <:< typeOf[mutable.LongMap [_]]) q " ${scalaCollectionCompanion(tpe)}.empty[ ${typeArg1(tpe)}] "
13311331 else if (tpe <:< typeOf[:: [_]]) q " null "
13321332 else if (tpe <:< typeOf[List [_]] || tpe.typeSymbol == typeOf[Seq [_]].typeSymbol) q " _root_.scala.Nil "
13331333 else if (tpe <:< typeOf[immutable.IntMap [_]] || tpe <:< typeOf[immutable.LongMap [_]] ||
1334- tpe <:< typeOf[immutable.Seq [_]] || tpe <:< typeOf[Set [_]]) withNullValueFor(tpe) {
1334+ tpe <:< typeOf[immutable.Seq [_]] || tpe <:< typeOf[immutable. Set [_]]) withNullValueFor(tpe) {
13351335 q " ${scalaCollectionCompanion(tpe)}.empty[ ${typeArg1(tpe)}] "
13361336 } else if (tpe <:< typeOf[immutable.Map [_, _]]) withNullValueFor(tpe) {
13371337 q " ${scalaCollectionCompanion(tpe)}.empty[ ${typeArg1(tpe)}, ${typeArg2(tpe)}] "
You can’t perform that action at this time.
0 commit comments