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.
Not planning to switch soon, but to keep some improvements/adjustments that we could make after switching:
List.ofandSet.ofwhere appropriate instead of more verboseArrays.asList, etc.!Optional.isPresent=Optional.isEmptycollect(toList())->Stream#toListNote
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.