From 71f457f8f135eaebd81d74691baee3eb0ee2fa8e Mon Sep 17 00:00:00 2001 From: Nadya Zabrodina Date: Sat, 21 Dec 2013 15:14:20 +0400 Subject: [PATCH] Style: unnecessary array with indicator output command removed, myShowOutput field used instead --- .../src/org/zmlx/hg4idea/execution/HgCommandExecutor.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandExecutor.java b/plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandExecutor.java index 932e594388e6..a7116790356e 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandExecutor.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandExecutor.java @@ -61,7 +61,6 @@ public final class HgCommandExecutor { private final Project myProject; private final HgVcs myVcs; private final String myDestination; - private final List operationsWithTextIndicator = Arrays.asList("clone", "push", "pull", "update", "merge"); @NotNull private Charset myCharset; private boolean myIsSilent = false; @@ -208,8 +207,8 @@ public final class HgCommandExecutor { String workingDir = repo != null ? repo.getPath() : null; ShellCommand shellCommand = new ShellCommand(cmdLine, workingDir, myCharset); long startTime = System.currentTimeMillis(); - LOG.debug(String.format("hg %s.started", operation)); - result = shellCommand.execute(operationsWithTextIndicator.contains(operation)); + LOG.debug(String.format("hg %s started", operation)); + result = shellCommand.execute(myShowOutput); LOG.debug(String.format("hg %s finished. Took %s ms", operation, System.currentTimeMillis() - startTime)); if (!HgErrorUtil.isAuthorizationError(result)) { passReceiver.saveCredentials();