From d2cd5d46fa98030a7e3e4e80266b17189d78dbba Mon Sep 17 00:00:00 2001 From: Denis Zharkov Date: Fri, 10 Mar 2017 19:12:55 +0300 Subject: [PATCH] Minor. Use static method from super class It was a code with warning --- .../surroundWith/statement/KotlinTrySurrounderBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/codeInsight/surroundWith/statement/KotlinTrySurrounderBase.java b/idea/src/org/jetbrains/kotlin/idea/codeInsight/surroundWith/statement/KotlinTrySurrounderBase.java index 54bc66decf3..754be5f5f23 100644 --- a/idea/src/org/jetbrains/kotlin/idea/codeInsight/surroundWith/statement/KotlinTrySurrounderBase.java +++ b/idea/src/org/jetbrains/kotlin/idea/codeInsight/surroundWith/statement/KotlinTrySurrounderBase.java @@ -16,7 +16,7 @@ package org.jetbrains.kotlin.idea.codeInsight.surroundWith.statement; -import com.intellij.codeInsight.CodeInsightUtilBase; +import com.intellij.codeInsight.CodeInsightUtilCore; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.TextRange; @@ -51,7 +51,7 @@ public abstract class KotlinTrySurrounderBase extends KotlinStatementsSurrounder // Delete statements from original code container.deleteChildRange(statements[0], statements[statements.length - 1]); - tryExpression = CodeInsightUtilBase.forcePsiPostprocessAndRestoreElement(tryExpression); + tryExpression = CodeInsightUtilCore.forcePsiPostprocessAndRestoreElement(tryExpression); return getTextRangeForCaret(tryExpression); }