From e3ecf690bfe150860f55a8c54df12e46c52257fb Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Thu, 13 Oct 2016 19:53:43 +0300 Subject: [PATCH] Fix log warning (PY-20668) --- .../jetbrains/python/console/PythonConsoleRunnerFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java b/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java index c8e2a0cab092..840b20d0424b 100644 --- a/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java +++ b/python/src/com/jetbrains/python/console/PythonConsoleRunnerFactory.java @@ -15,7 +15,7 @@ */ package com.jetbrains.python.console; -import com.intellij.openapi.components.ServiceManager; +import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; import org.jetbrains.annotations.NotNull; @@ -27,7 +27,7 @@ import org.jetbrains.annotations.Nullable; public abstract class PythonConsoleRunnerFactory { @NotNull public static PythonConsoleRunnerFactory getInstance() { - return ServiceManager.getService(PythonConsoleRunnerFactory.class); + return ApplicationManager.getApplication().getComponent(PythonConsoleRunnerFactory.class); } @NotNull