Skip to content

Remove unnecessary method overrides #46317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ protected TotalProgressListener(Consumer<TotalProgressEvent> consumer, String[]
this.trackedStatusKeys = trackedStatusKeys;
}

@Override
public void onStart() {
}

@Override
public void onUpdate(E event) {
if (event.getId() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ public String getUsageHelp() {
return "command";
}

@Override
public String getHelp() {
return null;
}

@Override
public Collection<OptionHelp> getOptionsHelp() {
List<OptionHelp> help = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ protected void beforeRun(Command command) {
this.lastCommand = command;
}

@Override
protected void afterRun(Command command) {
}

boolean handleSigInt() {
Command command = this.lastCommand;
if (command instanceof RunProcessCommand runProcessCommand) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,6 @@ private Iterator<File> listFiles(File file) {
return Arrays.asList(files).iterator();
}

@Override
public void remove() {
throw new UnsupportedOperationException("remove");
}

protected abstract T adapt(FileEntry entry);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,6 @@ boolean isOwnedBy(NestedJarFile nestedJarFile) {
return NestedJarFile.this == nestedJarFile;
}

@Override
public String getRealName() {
return super.getName();
}

@Override
public String getName() {
return this.name;
Expand Down