QuickFix name should have sentence capitalization

This commit is contained in:
Dmitry Avdeev
2014-12-06 10:10:26 +03:00
parent fa3b145b53
commit 7a9e97e707
@@ -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);