Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
github avatar

Java Refactoring Remove Parameter

  • 8.8k installs
  • 37.1k repo stars
  • Updated July 28, 2026
  • github/awesome-copilot

java-refactoring-remove-parameter is an agent skill that Refactoring using Remove Parameter in Java Language.

About

Refactoring using Remove Parameter in Java Language name java-refactoring-remove-parameter description Refactoring using Remove Parameter in Java Language 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 java 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 Code After Refactoring 1 java public Backend selectBackendForGroupCommit long tableId ConnectContext context throws LoadException DdlException if Env getCurrentEnv isMaster try long backendId new MasterOpExecutor context getGroupCommitLoadBeId tableId context getCloudCluster return Env getCurrentSystemInfo.

  • Refactoring Java Methods with Remove Parameter
  • First, analyze each method and identify parameters that are unused or redundant (i.e., values that can be obtained from
  • For each qualifying method, remove the unnecessary parameters from its definition and from all its internal calls.
  • Ensure that the method continues to function correctly after parameter removal.
  • Output only the refactored code inside a single ```java``` block.

Java Refactoring Remove Parameter by the numbers

  • 8,775 all-time installs (skills.sh)
  • +31 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #137 of 2,184 Testing & QA skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

java-refactoring-remove-parameter capabilities & compatibility

Capabilities
refactoring java methods with remove parameter · first, analyze each method and identify paramete · for each qualifying method, remove the unnecessa · ensure that the method continues to function cor · output only the refactored code inside a single
Use cases
documentation
From the docs

What java-refactoring-remove-parameter says it does

Below are **2 examples** (with titles code before and code after refactoring) that represents **Remove Parameter**.
SKILL.md
Always return a complete and compilable method (Java 17).
SKILL.md
- For each qualifying method, remove the unnecessary parameters from its definition and from all its internal calls.
SKILL.md
- Ensure that the method continues to function correctly after parameter removal.
SKILL.md
npx skills add https://github.com/github/awesome-copilot --skill java-refactoring-remove-parameter

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8.8k
repo stars37.1k
Security audit3 / 3 scanners passed
Last updatedJuly 28, 2026
Repositorygithub/awesome-copilot

What problem does java-refactoring-remove-parameter solve for developers using this skill?

Refactoring using Remove Parameter in Java Language

Who is it for?

Developers who need java-refactoring-remove-parameter patterns described in the cached skill documentation.

Skip if: Skip when docs are empty or the task is outside the skill's documented scope.

When should I use this skill?

Refactoring using Remove Parameter in Java Language

What you get

Actionable workflows and conventions from SKILL.md for java-refactoring-remove-parameter.

  • refactored method signatures
  • updated call sites

By the numbers

  • Includes 2 documented before-and-after refactoring examples

Files

SKILL.mdMarkdownGitHub ↗

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));
    }
}

Code After Refactoring 1:

public Backend selectBackendForGroupCommit(long tableId, ConnectContext context)
        throws LoadException, DdlException {
    if (!Env.getCurrentEnv().isMaster()) {
        try {
            long backendId = new MasterOpExecutor(context)
                    .getGroupCommitLoadBeId(tableId, context.getCloudCluster());
            return Env.getCurrentSystemInfo().getBackend(backendId);
        } catch (Exception e) {
            throw new LoadException(e.getMessage());
        }
    } else {
        return Env.getCurrentSystemInfo()
                .getBackend(selectBackendForGroupCommitInternal(tableId, context.getCloudCluster()));
    }
}

Code Before Refactoring 2:

NodeImpl( long id, long firstRel, long firstProp )
{
     this( id, false );
}

Code After Refactoring 2:

NodeImpl( long id)
{
     this( id, false );
}

Task

Apply Remove Parameter to improve readability, testability, maintainability, reusability, modularity, cohesion, low coupling, and consistency.

Always return a complete and compilable method (Java 17).

Perform intermediate steps internally:

  • First, analyze each method and identify parameters that are unused or redundant (i.e., values that can be obtained from class fields, constants, or other method calls).
  • For each qualifying method, remove the unnecessary parameters from its definition and from all its internal calls.
  • Ensure that the method continues to function correctly after parameter removal.
  • Output only the refactored code inside a single ``java`` block.
  • Do not remove any functionality from the original method.
  • Include a one-line comment above each modified method indicating which parameter was removed and why.

Code to be Refactored:

Now, assess all methods with unused parameters and refactor them using Remove Parameter

Related skills

FAQ

What does java-refactoring-remove-parameter do?

Refactoring using Remove Parameter in Java Language

When should I use java-refactoring-remove-parameter?

Refactoring using Remove Parameter in Java Language

Is java-refactoring-remove-parameter safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.