Skip to content

Conversation

@fangchenli
Copy link

Summary

  • Use pattern matching instanceof (Java 16+) to simplify equals() methods
  • Use multi-catch exception blocks to reduce boilerplate
  • Convert CachedKryoInstantiator inner class to a record (Java 16+)
  • Add proper generics to JavaMapConfig (replace raw Map type)
  • Use diamond operator and var for local variable type inference

Test plan

  • All chill-java tests pass
  • All Scala 2.13 tests pass
  • All Scala 3 tests pass

🤖 Generated with Claude Code

- Use pattern matching instanceof (Java 16+) to simplify equals() methods
  in ClassRegistrar, ReflectingRegistrar, ReflectingDefaultRegistrar,
  and ReflectingInstantiator
- Use multi-catch exception blocks to reduce boilerplate in
  ConfiguredInstantiator and ReflectingInstantiator
- Convert CachedKryoInstantiator inner class to a record (Java 16+)
- Add proper generics to JavaMapConfig (Map<String, Object> instead of raw Map)
- Use diamond operator and var for local variable type inference

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@fangchenli fangchenli merged commit 65a5d85 into develop Jan 30, 2026
11 checks passed
@fangchenli fangchenli deleted the modernize-java-17 branch January 30, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant