Skip to content

Commit 2c43442

Browse files
Update modules/scala-api/src/test/scala-3/org/apache/flinkx/api/GenericCaseClassScala3Test.scala
Co-authored-by: Arnaud <[email protected]>
1 parent 5694a0c commit 2c43442

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/scala-api/src/test/scala-3/org/apache/flinkx/api/GenericCaseClassScala3Test.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ class GenericCaseClassScala3Test extends AnyFlatSpec with should.Matchers {
1919
aClass: Class[A]
2020
): Unit = {
2121
// cacheKey=org.apache.flinkx.api.GenericCaseClassTest.Cat => OK
22-
val catInfo: TypeInformation[Cat] = implicitly[TypeInformation[Cat]]
22+
val catInfo: TypeInformation[Cat] = deriveTypeInformation
2323
// cacheKey=org.apache.flinkx.api.GenericCaseClassTest.Dog => OK
24-
val dogInfo: TypeInformation[Dog] = implicitly[TypeInformation[Dog]]
24+
val dogInfo: TypeInformation[Dog] = deriveTypeInformation
2525
// cacheKey=org.apache.flinkx.api.GenericCaseClassTest.Cat or Dog => OK
2626
val aInfo: TypeInformation[A] = implicitly[TypeInformation[A]]
2727
// cacheKey=org.apache.flinkx.api.GenericCaseClassTest.Basket[org.apache.flinkx.api.GenericCaseClassTest.Cat] => OK
28-
val catBasketInfo: TypeInformation[Basket[Cat]] = implicitly[TypeInformation[Basket[Cat]]]
28+
val catBasketInfo: TypeInformation[Basket[Cat]] = deriveTypeInformation
2929
// cacheKey=org.apache.flinkx.api.GenericCaseClassTest.Basket[org.apache.flinkx.api.GenericCaseClassTest.Dog] => OK
30-
val dogBasketInfo: TypeInformation[Basket[Dog]] = implicitly[TypeInformation[Basket[Dog]]]
30+
val dogBasketInfo: TypeInformation[Basket[Dog]] = deriveTypeInformation
3131
// cacheKey=org.apache.flinkx.api.GenericCaseClassTest.Basket[A] => Basket[A] is not cachable
32-
val aBasketInfo: TypeInformation[Basket[A]] = implicitly[TypeInformation[Basket[A]]]
32+
val aBasketInfo: TypeInformation[Basket[A]] = deriveTypeInformation
3333

3434
if (classOf[Cat].isAssignableFrom(aClass)) {
3535
aInfo should be theSameInstanceAs catInfo

0 commit comments

Comments
 (0)