summaryrefslogtreecommitdiffstats
path: root/sonar-application/src/main
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2015-02-21 08:28:12 +0100
committerEric Hartmann <hartmann.eric@gmail.com>2015-02-21 08:28:12 +0100
commit69d136d3a71e36521ddd56d0e5b037fb7472c95d (patch)
tree603b6dcb0a51c5cfe45870bd8aa24165d85adfe4 /sonar-application/src/main
parent1c64edd9c99077b592c0fcd8805c62cdca562080 (diff)
downloadsonarqube-69d136d3a71e36521ddd56d0e5b037fb7472c95d.tar.gz
sonarqube-69d136d3a71e36521ddd56d0e5b037fb7472c95d.zip
SONAR-6036 : Remove KnownJavaCommand and clean the memory at the startup of the ProcessCommand
Diffstat (limited to 'sonar-application/src/main')
-rw-r--r--sonar-application/src/main/java/org/sonar/application/App.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/App.java b/sonar-application/src/main/java/org/sonar/application/App.java
index f5418d42ab8..68cb982a845 100644
--- a/sonar-application/src/main/java/org/sonar/application/App.java
+++ b/sonar-application/src/main/java/org/sonar/application/App.java
@@ -28,7 +28,6 @@ import org.sonar.process.Props;
import org.sonar.process.StopWatcher;
import org.sonar.process.Stoppable;
import org.sonar.process.monitor.JavaCommand;
-import org.sonar.process.monitor.KnownJavaCommand;
import org.sonar.process.monitor.Monitor;
import java.io.File;
@@ -55,7 +54,7 @@ public class App implements Stoppable {
public void start(Props props) {
if (props.valueAsBoolean(ProcessConstants.ENABLE_STOP_COMMAND, false)) {
File tempDir = props.nonNullValueAsFile(ProcessConstants.PATH_TEMP);
- ProcessCommands commands = new ProcessCommands(tempDir, KnownJavaCommand.APP.getIndex());
+ ProcessCommands commands = new ProcessCommands(tempDir, 0);
stopWatcher = new StopWatcher(commands, this);
stopWatcher.start();
}