From f2d1a6808aa9524262de3a24e8f679fa97b9d81e Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 30 Jul 2018 17:44:20 +0300 Subject: [PATCH] git: cleanup - remove deprecated getter usage --- .../git4idea/src/git4idea/commands/GitBinaryHandler.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/git4idea/src/git4idea/commands/GitBinaryHandler.java b/plugins/git4idea/src/git4idea/commands/GitBinaryHandler.java index f0db4847d85e..acc748a76d5b 100644 --- a/plugins/git4idea/src/git4idea/commands/GitBinaryHandler.java +++ b/plugins/git4idea/src/git4idea/commands/GitBinaryHandler.java @@ -96,19 +96,20 @@ public class GitBinaryHandler extends GitHandler { @Override protected void waitForProcess() { + int exitCode; try { mySteamSemaphore.acquire(2); myProcess.waitFor(); - int exitCode = myProcess.exitValue(); - setExitCode(exitCode); + exitCode = myProcess.exitValue(); } catch (InterruptedException e) { if (LOG.isDebugEnabled()) { LOG.debug("Ignoring process exception: ", e); } - setExitCode(255); + exitCode = 255; } - listeners().processTerminated(getExitCode()); + setExitCode(exitCode); + listeners().processTerminated(exitCode); } /**