From 26fa2e4612b0075fddc12cccc539692561e9f0af Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Sat, 12 Apr 2025 18:58:04 +0200 Subject: [PATCH] java: drop duplicated property declaration GitOrigin-RevId: 4ecd5ee80d1f743855458dba2d1bbbd28b835932 --- .../intellij/codeInsight/editorActions/JavaTypedHandler.java | 4 ++-- java/openapi/resources/messages/JavaBundle.properties | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/editorActions/JavaTypedHandler.java b/java/java-impl/src/com/intellij/codeInsight/editorActions/JavaTypedHandler.java index f5b1ba00f896..60384c8cacd2 100644 --- a/java/java-impl/src/com/intellij/codeInsight/editorActions/JavaTypedHandler.java +++ b/java/java-impl/src/com/intellij/codeInsight/editorActions/JavaTypedHandler.java @@ -7,7 +7,7 @@ import com.intellij.codeInsight.completion.CompletionType; import com.intellij.codeInsight.completion.JavaClassReferenceCompletionContributor; import com.intellij.codeInsight.completion.command.CommandCompletionFactoryKt; import com.intellij.codeInsight.editorActions.smartEnter.JavaSmartEnterProcessor; -import com.intellij.java.JavaBundle; +import com.intellij.core.JavaPsiBundle; import com.intellij.java.syntax.parser.JavaKeywords; import com.intellij.openapi.command.CommandProcessor; import com.intellij.openapi.editor.Document; @@ -52,7 +52,7 @@ public final class JavaTypedHandler extends AbstractBasicJavaTypedHandler { @Override protected @NotNull Result processWhileAndIfStatementBody(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { CommandProcessor.getInstance().executeCommand(project, () -> new JavaSmartEnterProcessor().process(project, editor, file), - JavaBundle.message("command.name.insert.block.statement"), null); + JavaPsiBundle.message("command.name.insert.block.statement"), null); return Result.STOP; } diff --git a/java/openapi/resources/messages/JavaBundle.properties b/java/openapi/resources/messages/JavaBundle.properties index c9c75b8c18a8..6fda00a4588c 100644 --- a/java/openapi/resources/messages/JavaBundle.properties +++ b/java/openapi/resources/messages/JavaBundle.properties @@ -138,7 +138,6 @@ code.style.generation.use.integer.sum=Use Integer::sum, etc. when possible combobox.paste.insert.imports=&Insert imports on paste: command.create.class.from.template=Create Class From Template command.create.new.subdirectory=Create New Subdirectory -command.name.insert.block.statement=Insert Block Statement command.name.updating.package.statement=Updating package statement comment.the.class.will.be.created.in.the.package.0=The class will be created in the package ''{0}'' completion.class.name.hint.2=Press {0} once more to ignore module dependencies while searching