From 70a925317a40e054662a7a4b5528d56f42b924c0 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Wed, 11 Mar 2015 22:53:35 +0300 Subject: [PATCH] Minor. Replaced usage of deprecated method. --- .../kotlin/idea/inspections/UnusedSymbolInspection.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/UnusedSymbolInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/UnusedSymbolInspection.kt index 9336ea0a435..4cd8b00d8e9 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/UnusedSymbolInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/UnusedSymbolInspection.kt @@ -67,6 +67,7 @@ import javax.swing.JComponent import java.awt.GridBagConstraints import java.awt.Insets import com.intellij.codeInspection.ex.EntryPointsManager +import com.intellij.codeInspection.ex.EntryPointsManagerImpl import com.intellij.openapi.project.ProjectUtil import java.awt.GridBagLayout import javax.swing.JPanel @@ -208,9 +209,8 @@ public class UnusedSymbolInspection : AbstractKotlinInspection() { override fun createOptionsPanel(): JComponent? { val panel = JPanel(GridBagLayout()) - val project = ProjectUtil.guessCurrentProject(panel) panel.add( - EntryPointsManager.getInstance(project).createConfigureAnnotationsBtn(), + EntryPointsManagerImpl.createConfigureAnnotationsButton(), GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, Insets(0, 0, 0, 0), 0, 0) ) return panel