aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorgjoranv <gv@yahoo-inc.com>2017-03-02 16:26:21 +0100
committergjoranv <gv@yahoo-inc.com>2017-03-02 16:27:37 +0100
commit77f1ef3941bc451aa1e1bbc7d396d764c161db0e (patch)
tree9fdd8beb32d97a0ce5dc27d8c6491ec5b304f2f6 /vespajlib
parent18638a9b8c4b2bafd4aba15d14cf66aff1ee9ce0 (diff)
Fix indentation.
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/system/execution/ProcessExecutor.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/system/execution/ProcessExecutor.java b/vespajlib/src/main/java/com/yahoo/system/execution/ProcessExecutor.java
index 17d0e4c0caa..a5edaba7d6e 100644
--- a/vespajlib/src/main/java/com/yahoo/system/execution/ProcessExecutor.java
+++ b/vespajlib/src/main/java/com/yahoo/system/execution/ProcessExecutor.java
@@ -64,7 +64,7 @@ public class ProcessExecutor {
* @return The result of the execution, or empty if the process does not terminate within the timeout set for this executor.
* @throws IOException if the process execution failed.
*/
- public Optional<ProcessResult> execute(String command, String processInput) throws IOException {
+ public Optional<ProcessResult> execute(String command, String processInput) throws IOException {
ByteArrayOutputStream processErr = new ByteArrayOutputStream();
ByteArrayOutputStream processOut = new ByteArrayOutputStream();
@@ -74,12 +74,12 @@ public class ProcessExecutor {
executor.setWatchdog(watchDog);
executor.setExitValues(successExitCodes);
- int exitCode;
- try {
- exitCode = executor.execute(CommandLine.parse(command));
- } catch (ExecuteException e) {
- exitCode = e.getExitValue();
- }
+ int exitCode;
+ try {
+ exitCode = executor.execute(CommandLine.parse(command));
+ } catch (ExecuteException e) {
+ exitCode = e.getExitValue();
+ }
return (watchDog.killedProcess()) ?
Optional.empty() : Optional.of(new ProcessResult(exitCode, processOut.toString(), processErr.toString()));
}