mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
notnull
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ public class SuppressAllForClassFix extends SuppressFix {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
|
||||
public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
|
||||
final PsiDocCommentOwner container = getContainer(element);
|
||||
LOG.assertTrue(container != null);
|
||||
if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
|
||||
|
||||
@@ -105,7 +105,7 @@ public class SuppressFix extends SuppressIntentionAction {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
|
||||
public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
|
||||
PsiDocCommentOwner container = getContainer(element);
|
||||
assert container != null;
|
||||
if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ public class SuppressParameterFix extends SuppressIntentionAction {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
|
||||
public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
|
||||
PsiParameter container = PsiTreeUtil.getParentOfType(element, PsiParameter.class, false);
|
||||
assert container != null;
|
||||
if (!CodeInsightUtilBase.preparePsiElementForWrite(container)) return;
|
||||
|
||||
+1
-1
@@ -83,7 +83,7 @@ public class DelegateWithDefaultParamValueIntentionAction extends PsiElementBase
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException {
|
||||
public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
|
||||
final PsiParameter parameter = PsiTreeUtil.getParentOfType(element, PsiParameter.class);
|
||||
final PsiMethod method = (PsiMethod)parameter.getDeclarationScope();
|
||||
final PsiMethod prototype = (PsiMethod)method.getContainingClass().addBefore(generateMethodPrototype(method, parameter), method);
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ public class QualifyThisArgumentFix extends PsiElementBaseIntentionAction {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException {
|
||||
public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement element) throws IncorrectOperationException {
|
||||
myExpression.replace(RefactoringUtil.createThisExpression(PsiManager.getInstance(project), myPsiClass));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ public class InsertLiteralUnderscoresAction extends PsiElementBaseIntentionActio
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
|
||||
public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
|
||||
final PsiLiteralExpression literalExpression = PsiTreeUtil.getParentOfType(element, PsiLiteralExpression.class, false);
|
||||
if (literalExpression == null) return;
|
||||
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public class RemoveLiteralUnderscoresAction extends PsiElementBaseIntentionActio
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(final Project project, final Editor editor, final PsiElement element) throws IncorrectOperationException {
|
||||
public void invoke(@NotNull final Project project, final Editor editor, @NotNull final PsiElement element) throws IncorrectOperationException {
|
||||
final PsiLiteralExpression literalExpression = PsiTreeUtil.getParentOfType(element, PsiLiteralExpression.class, false);
|
||||
if (literalExpression == null) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user