mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
final method in final class warning fixed
GitOrigin-RevId: eeec0047e89c8bcd9768022405964716ac0bb75e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cfe07d0d77
commit
3614b742bb
@@ -34,12 +34,12 @@ public final class MisorderedAssertEqualsArgumentsInspection extends BaseInspect
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
protected final String buildErrorString(Object... infos) {
|
||||
protected String buildErrorString(Object... infos) {
|
||||
return InspectionGadgetsBundle.message("misordered.assert.equals.arguments.problem.descriptor");
|
||||
}
|
||||
|
||||
@Override
|
||||
public final LocalQuickFix buildFix(Object... infos) {
|
||||
public LocalQuickFix buildFix(Object... infos) {
|
||||
return new FlipArgumentsFix();
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ public final class MisorderedAssertEqualsArgumentsInspection extends BaseInspect
|
||||
}
|
||||
|
||||
@Override
|
||||
public final BaseInspectionVisitor buildVisitor() {
|
||||
public BaseInspectionVisitor buildVisitor() {
|
||||
return new MisorderedAssertEqualsParametersVisitor();
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public final class RenameWrongRefHandler implements RenameHandler {
|
||||
|
||||
|
||||
@Override
|
||||
public final boolean isAvailableOnDataContext(@NotNull final DataContext dataContext) {
|
||||
public boolean isAvailableOnDataContext(@NotNull final DataContext dataContext) {
|
||||
final Editor editor = CommonDataKeys.EDITOR.getData(dataContext);
|
||||
final PsiFile file = CommonDataKeys.PSI_FILE.getData(dataContext);
|
||||
final Project project = CommonDataKeys.PROJECT.getData(dataContext);
|
||||
|
||||
@@ -29,7 +29,7 @@ public final class ReplaceConstructorWithBuilderAction extends PsiElementBaseInt
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public final String getFamilyName() {
|
||||
public String getFamilyName() {
|
||||
return getText();
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import java.util.*;
|
||||
public final class ReplaceConstructorWithFactoryAction implements ModCommandAction {
|
||||
@NotNull
|
||||
@Override
|
||||
public final String getFamilyName() {
|
||||
public String getFamilyName() {
|
||||
return JavaRefactoringBundle.message("replace.constructor.with.factory.method");
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ public final class EncapsulateFieldAction extends BaseRefactoringIntentionAction
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public final String getFamilyName() {
|
||||
public String getFamilyName() {
|
||||
return getText();
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ public final class AnnotateOverriddenMethodsIntention extends BaseElementAtCaret
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public final String getText() {
|
||||
public String getText() {
|
||||
return m_text == null ? "" : m_text;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public final class AnnotateOverriddenMethodsIntention extends BaseElementAtCaret
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean isAvailable(@NotNull Project project, @NotNull Editor editor, @NotNull PsiElement node) {
|
||||
public boolean isAvailable(@NotNull Project project, @NotNull Editor editor, @NotNull PsiElement node) {
|
||||
final PsiAnnotation annotation = (PsiAnnotation)findMatchingElement(node);
|
||||
if (annotation == null) return false;
|
||||
final String annotationText = annotation.getText();
|
||||
|
||||
@@ -87,7 +87,7 @@ public final class PyPsiFacadeImpl extends PyPsiFacade {
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public final PyClass createClassByQName(@NotNull final String qName, @NotNull final PsiElement anchor) {
|
||||
public PyClass createClassByQName(@NotNull final String qName, @NotNull final PsiElement anchor) {
|
||||
final QualifiedName qualifiedName = QualifiedName.fromDottedString(qName);
|
||||
// Only built-in classes can be found by their unqualified names.
|
||||
if (qualifiedName.getComponentCount() == 1) {
|
||||
|
||||
Reference in New Issue
Block a user