Skip to content

Commit abe2a51

Browse files
vincenzobazMaximeKjaer
authored andcommitted
Use another form of type annotation to keep both 2.13 and 3 versions happy
1 parent 431e4df commit abe2a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scio-core/src/main/scala/com/spotify/scio/schemas/SchemaMaterializer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ object SchemaMaterializer {
150150
schema
151151
.toList(v)
152152
.asScala
153-
.map[schema.schema.Repr](dispatchEncode(schema.schema, fieldType.getCollectionElementType))
153+
.map(dispatchEncode(schema.schema, fieldType.getCollectionElementType): A => schema.schema.Repr)
154154
.asJava
155155

156156
private def encode[F[_, _], A, B](schema: MapType[F, A, B], fieldType: BFieldType)(

0 commit comments

Comments
 (0)