Lightlines
By github

java-refactoring-extract-method

github9.2k installs

Make complex Java methods easier to follow.

What it does

Refactors complex Java methods into smaller, named methods while preserving behavior and validating changes with compilation and tests.

When to use it

Use when Java methods contain cohesive blocks worth extracting, especially methods exceeding roughly 15 lines, 10 statements, or cyclomatic complexity 10.

How to use it

Give it a Java project to refactor; it extracts cohesive blocks into named methods and reports the changes and test results.

What you provide

  • An existing project

Latest review

What you need · 1

Requires a Java toolchain compatible with the project's configured Java level to compile the refactored code and run its tests.


Access · 0

No additional actions listed.