diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-30 10:51:46 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-30 10:51:46 +0200 |
commit | 81e17e86cb55558de9d48c6e5fbda1cc79e98355 (patch) | |
tree | da39fb300e2defa8d525bf3d97a0831813b593ca /server/sonar-process-monitor/src | |
parent | 3176e6a63f06386a78ea73d69c5f082959562ac3 (diff) | |
download | sonarqube-81e17e86cb55558de9d48c6e5fbda1cc79e98355.tar.gz sonarqube-81e17e86cb55558de9d48c6e5fbda1cc79e98355.zip |
Fix quality flaws
Diffstat (limited to 'server/sonar-process-monitor/src')
-rw-r--r-- | server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/JavaProcessLauncher.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/JavaProcessLauncher.java b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/JavaProcessLauncher.java index 390746bca59..2b3ab12d624 100644 --- a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/JavaProcessLauncher.java +++ b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/JavaProcessLauncher.java @@ -99,7 +99,7 @@ public class JavaProcessLauncher { Properties props = new Properties(); props.putAll(javaCommand.getArguments()); props.setProperty(ProcessEntryPoint.PROPERTY_PROCESS_KEY, javaCommand.getKey()); - props.setProperty(ProcessEntryPoint.PROPERTY_PROCESS_INDEX, "" + javaCommand.getProcessIndex()); + props.setProperty(ProcessEntryPoint.PROPERTY_PROCESS_INDEX, Integer.toString(javaCommand.getProcessIndex())); props.setProperty(ProcessEntryPoint.PROPERTY_TERMINATION_TIMEOUT, String.valueOf(timeouts.getTerminationTimeout())); props.setProperty(ProcessEntryPoint.PROPERTY_SHARED_PATH, javaCommand.getTempDir().getAbsolutePath()); OutputStream out = new FileOutputStream(propertiesFile); |