Skip to content

Remove the usage of JavaConversion #475

@xerial

Description

@xerial
[airframe] [warn] /Users/leo/work/git/community-builds/target-0.9.16/project-builds/airframe-a187e75323cd4d91849048a41b571e9b90afcbf5/airframe-codec/.jvm/src/test/scala/wvlet/airframe/codec/CollectionCodecTest.scala:33:18: object JavaConverters in package collection is deprecated (since 2.13.0): Use `scala.jdk.CollectionConverters` instead
[airframe] [warn]       val v = Map("id" -> 1).asJava
[airframe] [warn]                  ^
[airframe] [warn] /Users/leo/work/git/community-builds/target-0.9.16/project-builds/airframe-a187e75323cd4d91849048a41b571e9b90afcbf5/airframe-codec/.jvm/src/test/scala/wvlet/airframe/codec/CollectionCodecTest.scala:57:53: object JavaConverters in package collection is deprecated (since 2.13.0): Use `scala.jdk.CollectionConverters` instead
[airframe] [warn]       codec.unpackMsgPack(msgpack) shouldBe Some(Map("leo" -> 1, "yui" -> 2).asJava)
[airframe] [warn]                                                     ^
[airframe] [warn] /Users/leo/work/git/community-builds/target-0.9.16/project-builds/airframe-a187e75323cd4d91849048a41b571e9b90afcbf5/airframe-codec/.jvm/src/test/scala/wvlet/airframe/codec/JDBCCodecTest.scala:186:45: method toIndexedSeq in class IterableOnceExtensionMethods is deprecated (since 2.13.0): Use .iterator.toIndexedSeq instead
[airframe] [warn]       val jsonSeq = JDBCCodec(rs).toJsonSeq.toIndexedSeq
[airframe] [warn]                                             ^
[airframe] [warn] /Users/leo/work/git/community-builds/target-0.9.16/project-builds/airframe-a187e75323cd4d91849048a41b571e9b90afcbf5/airframe-codec/.jvm/src/test/scala/wvlet/airframe/codec/PrimitiveCodecTest.scala:26:49: type GeneratorDrivenPropertyChecks in package prop is deprecated: GeneratorDrivenPropertyChecks has been moved from org.scalatest.prop to org.scalatestplus.scalacheck and renamed as ScalaCheckDrivenPropertyChecks. Please update your imports, as this deprecated type alias will be removed in a future version of ScalaTest.
[airframe] [warn] class PrimitiveCodecTest extends CodecSpec with GeneratorDrivenPropertyChecks {
[airframe] [warn]                                                 ^
[airframe] [warn] /Users/leo/work/git/community-builds/target-0.9.16/project-builds/airframe-a187e75323cd4d91849048a41b571e9b90afcbf5/airframe-codec/.jvm/src/test/scala/wvlet/airframe/codec/PrimitiveCodecTest.scala:48:34: object JavaConverters in package collection is deprecated (since 2.13.0): Use `scala.jdk.CollectionConverters` instead
[airframe] [warn]       roundtrip(javaListCodec, v.toSeq.asJava, DataType.ANY)
[airframe] [warn]                                  ^

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions