mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
QuickFix name should have sentence capitalization
This commit is contained in:
@@ -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<D extends CommonProblemDescriptor> {
|
||||
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<D extends CommonProblemDescriptor> {
|
||||
/**
|
||||
* 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);
|
||||
|
||||
Reference in New Issue
Block a user