File tree 1 file changed +3
-3
lines changed
jsoniter-scala-macros/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/macros
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1325,13 +1325,13 @@ object JsonCodecMaker {
1325
1325
else if (tpe =:= definitions.FloatTpe || tpe =:= typeOf[java.lang.Float ]) q " 0f "
1326
1326
else if (tpe =:= definitions.DoubleTpe || tpe =:= typeOf[java.lang.Double ]) q " 0.0 "
1327
1327
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" )
1330
1330
else if (tpe <:< typeOf[mutable.LongMap [_]]) q " ${scalaCollectionCompanion(tpe)}.empty[ ${typeArg1(tpe)}] "
1331
1331
else if (tpe <:< typeOf[:: [_]]) q " null "
1332
1332
else if (tpe <:< typeOf[List [_]] || tpe.typeSymbol == typeOf[Seq [_]].typeSymbol) q " _root_.scala.Nil "
1333
1333
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) {
1335
1335
q " ${scalaCollectionCompanion(tpe)}.empty[ ${typeArg1(tpe)}] "
1336
1336
} else if (tpe <:< typeOf[immutable.Map [_, _]]) withNullValueFor(tpe) {
1337
1337
q " ${scalaCollectionCompanion(tpe)}.empty[ ${typeArg1(tpe)}, ${typeArg2(tpe)}] "
You can’t perform that action at this time.
0 commit comments