Skip to content
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

删除无效参数声明及引用 #2765

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 @@ -321,7 +321,7 @@ private void tryToLoadArthasProperties() throws IOException {
if (new File(location).exists()) {
Properties properties = FileUtils.readProperties(location);

boolean overrideAll = false;
boolean overrideAll;
if (arthasEnvironment.containsProperty(CONFIG_OVERRIDE_ALL)) {
overrideAll = arthasEnvironment.getRequiredProperty(CONFIG_OVERRIDE_ALL, boolean.class);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class PlainTextHandler extends StdoutHandler {
public static String NAME = "plaintext";

public static StdoutHandler inject(List<CliToken> tokens) {
public static StdoutHandler inject() {
return new PlainTextHandler();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static StdoutHandler inject(List<CliToken> tokens) {
if (firstTextToken.value().equals(GrepHandler.NAME)) {
return GrepHandler.inject(tokens);
} else if (firstTextToken.value().equals(PlainTextHandler.NAME)) {
return PlainTextHandler.inject(tokens);
return PlainTextHandler.inject();
} else if (firstTextToken.value().equals(WordCountHandler.NAME)) {
return WordCountHandler.inject(tokens);
} else if (firstTextToken.value().equals(TeeHandler.NAME)){
Expand Down