
Java Refactoring Remove Parameter
Claude Code's java-refactoring-remove-parameter skill identifies and removes unused or redundant parameters from Java methods to improve code readability and maintainability. It is designed for Java developers who want to refactor their codebase by eliminating unnecessary method parameters that can be derived from class fields, constants, or other method calls. The skill solves the problem of parameter bloat and complexity by analyzing methods, removing superfluous parameters from both method definitions and their internal calls, while ensuring the refactored code remains functionally equivalent and compilable.
- skills.sh installs
- 8.9K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill java-refactoring-remove-parameter --agent claude-codeInstalls into .claude/skills of the current project.
Files
Refactoring Java Methods with Remove Parameter
Role
You are an expert in refactoring Java methods.
Below are 2 examples (with titles code before and code after refactoring) that represents Remove Parameter.
Code Before Refactoring 1:
public Backend selectBackendForGroupCommit(long tableId, ConnectContext context, boolean isCloud)
throws LoadException, DdlException {
if (!Env.getCurrentEnv().isMaster()) {
try {
long backendId = new MasterOpExecutor(context)
.getGroupCommitLoadBeId(tableId, context.getCloudCluster(), isCloud);
return Env.getCurrentSystemInfo().getBackend(backendId);
} catch (Exception e) {
throw new LoadException(e.getMessage());
}
} else {
return Env.getCurrentSystemInfo()
.getBackend(selectBackendForGroupCommitInternal(tableId, context.getCloudCluster(), isCloud));
}
}
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Git & Pull Requests, Code Review & Quality, AI & Agent Building, Java & JVM
More from github/awesome-copilot
All 318- Suggest Awesome Github Copilot Skills8.9K
- Create Github Issue Feature From Specification8.9K
- Legacy Circuit Mockups8.9K
- Power Bi Performance Troubleshooting8.9K
- Containerize Aspnetcore8.9K
- Php Mcp Server Generator8.9K
- Terraform Azurerm Set Diff Analyzer8.9K
- Vscode Ext Localization8.9K
- Make Skill Template8.9K
- Csharp Mstest8.9K
- Comment Code Generate A Tutorial8.9K
- Azure Resource Visualizer8.9K
- Csharp Tunit8.9K
- Code Exemplars Blueprint Generator8.8K
- Update Llms8.8K
- Structured Autonomy Plan8.8K
- Workiq Copilot8.8K
- Create Tldr Page8.8K
- Mcp Deploy Manage Agents8.8K
- Bigquery Pipeline Audit8.8K
- Java Mcp Server Generator8.8K
- Mkdocs Translations8.8K
- Tldr Prompt8.8K
- Copilot Cli Quickstart8.8K