From 7a9e97e7072c862e515f3a48bd23189a6f11ad71 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Sat, 6 Dec 2014 10:07:06 +0300 Subject: [PATCH] QuickFix name should have sentence capitalization --- .../src/com/intellij/codeInspection/QuickFix.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/analysis-api/src/com/intellij/codeInspection/QuickFix.java b/platform/analysis-api/src/com/intellij/codeInspection/QuickFix.java index e36019c52942..f8c670a98519 100644 --- a/platform/analysis-api/src/com/intellij/codeInspection/QuickFix.java +++ b/platform/analysis-api/src/com/intellij/codeInspection/QuickFix.java @@ -16,6 +16,7 @@ package com.intellij.codeInspection; import com.intellij.openapi.project.Project; +import org.jetbrains.annotations.Nls; import org.jetbrains.annotations.NotNull; /** @@ -27,11 +28,13 @@ import org.jetbrains.annotations.NotNull; */ public interface QuickFix { QuickFix[] EMPTY_ARRAY = new QuickFix[0]; + /** * Returns the name of the quick fix. * * @return the name of the quick fix. */ + @Nls(capitalization = Nls.Capitalization.Sentence) @NotNull String getName(); @@ -46,7 +49,7 @@ public interface QuickFix { /** * Called to apply the fix. * - * @param project {@link com.intellij.openapi.project.Project} + * @param project {@link Project} * @param descriptor problem reported by the tool which provided this quick fix action */ void applyFix(@NotNull Project project, @NotNull D descriptor);