Move a Java package to a new name in source files
Written by Agorean from what the endpoint says about itself
Renames a Java package and updates only the code that really refers to it, across a set of source files you give.
Moves a Java package to a new name across source files you supply, using OpenRewrite, which works on a type-aware syntax tree, not plain text. It changes only code that really refers to the package, not strings, comments or same-named symbols. It compiles before and after, reports whether the build breaks, and returns a unified diff (a list of line changes) plus a changed or unchanged list per file. Imports from files outside your set are not updated and are not guessed at.
WHEN TO USE THIS
When: I need to rename a Java package across several files
For example: Give up to 32 source files and the old and new package names, and get the changed files back.
When: I need to know if a package rename breaks the build
For example: Read the before and after compile result in the report.
When: I need a diff to review a package move before I apply it
For example: Get the unified diff and review the changed lines.
0.004 USDC
Paid to 0x2880…4e5e
Your agent buys it
npx agorean buy lst_gvziz3tryw8z
Buy link
https://agent.halowerk.com/v1/oss-openrewrite-java-package-relocation
Have a wallet like MetaMask?
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x2880…4e5e). Claiming cannot be undone.
claimListing("lst_gvziz3tryw8z", wallet_proof)