Skip to content

Commit 536741d

Browse files
committed
Add missing full package prefixes when generating codecs by Scala 2 macros
1 parent 26abb47 commit 536741d

File tree

1 file changed

+5
-5
lines changed
  • jsoniter-scala-macros/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/macros

1 file changed

+5
-5
lines changed

jsoniter-scala-macros/shared/src/main/scala-2/com/github/plokhotnyuk/jsoniter_scala/macros/JsonCodecMaker.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,18 +2222,18 @@ object JsonCodecMaker {
22222222
q"""{
22232223
@_root_.java.lang.SuppressWarnings(_root_.scala.Array("org.wartremover.warts.All"))
22242224
val x = new _root_.com.github.plokhotnyuk.jsoniter_scala.core.JsonValueCodec[$rootTpe] {
2225-
@inline
2225+
@_root_.scala.inline
22262226
def nullValue: $rootTpe = ${genNullValue(rootTpe :: Nil)}
22272227

2228-
@inline
2228+
@_root_.scala.inline
22292229
def decodeValue(in: _root_.com.github.plokhotnyuk.jsoniter_scala.core.JsonReader, default: $rootTpe): $rootTpe = ${
2230-
if (cfg.encodingOnly) q"???"
2230+
if (cfg.encodingOnly) q"_root_.scala.Predef.???"
22312231
else genReadVal(rootTpe :: Nil, q"default", cfg.isStringified, EmptyTree)
22322232
}
22332233

2234-
@inline
2234+
@_root_.scala.inline
22352235
def encodeValue(x: $rootTpe, out: _root_.com.github.plokhotnyuk.jsoniter_scala.core.JsonWriter): _root_.scala.Unit = ${
2236-
if (cfg.decodingOnly) q"???"
2236+
if (cfg.decodingOnly) q"_root_.scala.Predef.???"
22372237
else genWriteVal(q"x", rootTpe :: Nil, cfg.isStringified, EmptyTree)
22382238
}
22392239
..$decodeMethodTrees

0 commit comments

Comments
 (0)