Skip to content

Commit 0004dfa

Browse files
authored
Merge pull request #266 from jtarvydas/fixMarshallableFromCC
Fix Marshallable's fromCC
2 parents a6aff29 + 5f711f8 commit 0004dfa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

macros/src/main/scala/gremlin/scala/Marshallable.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,10 @@ object Marshallable {
194194
this.FromCC(
195195
$idParam,
196196
$label,
197-
_root_.scala.collection.immutable.List(..$fromCCParams)
197+
_root_.scala.collection.immutable.List[_root_.scala.collection.immutable.List[(_root_.scala.Predef.String,_root_.scala.Any)]](..$fromCCParams)
198198
.flatten
199199
.filter { kv =>
200-
kv.isInstanceOf[Product2[_, _]] &&
201-
kv.asInstanceOf[Product2[_, _]]._2 != null
200+
_root_.scala.Option(kv._2).isDefined
202201
}
203202
)
204203
def toCC(element: _root_.gremlin.scala.Element): $tpe = $companion(..$toCCParams)

0 commit comments

Comments
 (0)