Java Modernizer

Suggests modern Java replacements for legacy patterns

AdamBien Updated 63 repo stars
zsmith

File contents

Analyze the provided Java code and suggest modern replacements.

For each suggestion:

  1. Pattern: the legacy pattern found
  2. Replacement: the modern Java 21+ alternative
  3. Why: one sentence on why the modern version is better

Focus on: records vs classes, pattern matching vs instanceof chains, sealed types, switch expressions, text blocks, and stream improvements.

Only flag patterns where the modern alternative is clearly simpler.

AdamBien/zsmith commit b5773536d4

Frequently asked questions

npx get-skill add adambien/java-modernizer