simplify code appcode/146.709 clion/146.710
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Sat, 19 Mar 2016 11:01:57 +0000 (14:01 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Sat, 19 Mar 2016 11:01:57 +0000 (14:01 +0300)
platform/testRunner/src/com/intellij/execution/testframework/autotest/AutoTestManager.java

index e21f36f4d913b6fa3a375688ce760f55cb7e3b8c..7a9b062290828fd2c800da66fed8eb9a6c0aa0d6 100644 (file)
@@ -36,7 +36,6 @@ import com.intellij.openapi.fileEditor.FileEditorManager;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.util.Condition;
 import com.intellij.openapi.util.Key;
-import com.intellij.openapi.util.text.StringUtilRt;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.ui.content.Content;
 import com.intellij.util.Consumer;
@@ -66,7 +65,7 @@ public class AutoTestManager {
 
   public AutoTestManager(@NotNull Project project) {
     myProject = project;
-    myDelayMillis = StringUtilRt.parseInt(PropertiesComponent.getInstance(project).getValue(AUTO_TEST_MANAGER_DELAY), AUTO_TEST_MANAGER_DELAY_DEFAULT);
+    myDelayMillis = PropertiesComponent.getInstance(project).getInt(AUTO_TEST_MANAGER_DELAY, AUTO_TEST_MANAGER_DELAY_DEFAULT);
     myDocumentWatcher = createWatcher();
   }