·
Last changedVersion:
This version passed the hardening gate. Hardening applied 8 targeted changes and preserved all other text. Classified findings before hardening: 0. Classified findings closed: 0. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 9. Review findings remaining: 0.
None
None
Expand | File | Group | Subtype | Severity | Status |
|---|
No findings available
0 findings
You are an expert in refactoring Java methods.
Below is one example (with titles code before and code after refactoring) that represents Remove Parameter.
./mvnw -q -Dtest=MyTest test, ./gradlew test --tests MyTest) or ./mvnw verify / ./gradlew build, and re-run after the change. If the baseline is red, stop and report.lsp-setup/jdtls) if it is already installed, and grep across all modules, including tests; grep alone is the fallback when no language server is available. The language server is optional: ask the user before installing it, and note that importing a project into it also runs build logic, so the trust confirmation above applies. Also check:
@Override, abstract/default methods, functional interfaces, method references): the whole hierarchy must change together;getMethod, getDeclaredMethod, MethodHandle, proxies), and Spring/CDI/Quarkus/Jakarta annotated methods (@Bean, @EventListener, @Scheduled, @Inject, @Path, @Observes, @PostConstruct), which a compiler will not flag;@JsonCreator, @ConstructorBinding, readObject), and serialVersionUID impact;Apply Remove Parameter to improve readability, coupling and consistency.
Work only on the code, files or methods the user provides. Assess the methods in that code for unused parameters, list the candidates and get the user's approval, then refactor them one at a time using Remove Parameter. Leave generated code and public API unchanged unless the user approves.
Get started with chainctlchainctl skill install public/github/java-refactoring-remove-parameter:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.chainreg.biz/public/github.com/github/skills/java-refactoring-remove-parameter:latest
MIT
HARDENING.md
LICENSE
SKILL.md