Skip to content

Switch to Java 11 #347

@ljacqu

Description

@ljacqu

Not planning to switch soon, but to keep some improvements/adjustments that we could make after switching:

  • See comments in code referencing this issue
  • Use List.of and Set.of where appropriate instead of more verbose Arrays.asList, etc.
  • !Optional.isPresent = Optional.isEmpty
  • collect(toList()) -> Stream#toList
  • Upgrade to Mockito 5
  • Remove Mockito exclusion from dependabot.yml
  • Handling records requires a lot of reflection acrobatics at the moment

Note

You might see this issue referenced a lot in the code base also for later Java versions. This issue number is used as a general bookmark to note Java differences. If we switch to Java 11, we'll probably change the comments to reference another issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions