Skip to content

disneystreaming/smithy4s v0.16.8 #16335

Closed as not planned
Closed as not planned
@dwijnand

Description

@dwijnand
[error] [core3] -- Error: /home/jenkins/agent/workspace/buildCommunityProject/repo/modules/core/test/src/smithy4s/ProductSerialSmokeSpec.scala:29:45 
[error] [core3] 29 |    expect(List(product, serial, foo).forall(_ != null))
[error] [core3]    |                                             ^^^^^^^^^
[error] [core3]    |Values of types object smithy4s.example.Product | object smithy4s.example.Serializable | object
[error] [core3]    |  smithy4s.example.FooEnum.FOO and Null cannot be compared with == or !=
[error] [core3] one error found
[error] [core3] (core3 / Test / compileIncremental) Compilation failed

Explicit nulls not enabled in the project

 
  test(
    "Enumeration compiles when shapes called Product or Serializable exist"
  ) {
   // Classess generated from schema
    val product = smithy4s.example.Product
    val serial = smithy4s.example.Serializable
    val foo = smithy4s.example.FooEnum.FOO
    expect(List(product, serial, foo).forall(_ != null))
  }

Related:
monix/monix-connect v0.9.0 Open CB #20502

    // Java defined class
    val request: PutObjectRequest =
      S3RequestBuilder
        .putObjectRequest(bucket, key, contentLenght, uploadSettings)

    request.contentLength shouldBe contentLenght.getOrElse(null)
[error] -- Error: /home/jenkins/agent/workspace/buildCommunityProject/repo/s3/src/test/scala/monix.connect.s3/S3RequestBuilderSpec.scala:298:64 
[error] 298 |    request.contentLength shouldBe contentLenght.getOrElse(null)
[error]     |                                                                ^
[error]     | Values of types Long and Long | Null cannot be compared with == or !=
[warn] 11 warnings found

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions