Skip to content

Conversation

@marcphilipp
Copy link
Member

Overview

  • Use enhanced switch expressions
  • Use immutable collection factory methods
  • Delete CollectionUtils.toSet
  • Replace CollectionUtils.toUnmodifiableList() with Stream.toList()
  • Pass Charset directly
  • Delete PackageNameUtils
  • Delete unused methods
  • Remove unnecessary non-capturing groups
  • Simplify usage of Optional
  • Use records
  • Use pattern variables
  • Deprecate Filter#adaptFilter
  • Replace Collectors.toList() with Stream.toList()
  • Use more immutable collection factory methods
  • Fix nullability annotations in ReflectionUtils and AnnotationSupport
  • Fix nullability annotation in RecordArguments
  • Remove unnecessary reflection
  • Remove unused method

I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@marcphilipp marcphilipp self-assigned this May 24, 2025
Copy link
Member

@sormuras sormuras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@marcphilipp marcphilipp force-pushed the marc/jdk17-code-improvements branch from 4ada94e to 84d0a0d Compare May 24, 2025 17:38
@marcphilipp marcphilipp added this to the 6.0.0-M1 milestone May 24, 2025
@marcphilipp marcphilipp marked this pull request as ready for review May 24, 2025 17:45
@marcphilipp marcphilipp merged commit e9d71d6 into main May 24, 2025
13 checks passed
@marcphilipp marcphilipp deleted the marc/jdk17-code-improvements branch May 24, 2025 17:45
@sbrannen sbrannen self-assigned this May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants