This commit is contained in:
Alexey Kudravtsev
2014-02-10 12:32:35 +04:00
parent 539ccf88b1
commit 9d46ee9c3f
4 changed files with 8 additions and 8 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ public class CreateGetterOrSetterFix implements IntentionAction, LowPriorityActi
private final PsiField myField;
private final String myPropertyName;
public CreateGetterOrSetterFix(boolean createGetter, boolean createSetter, PsiField field) {
public CreateGetterOrSetterFix(boolean createGetter, boolean createSetter, @NotNull PsiField field) {
myCreateGetter = createGetter;
myCreateSetter = createSetter;
myField = field;
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2010 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,6 @@ import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.refactoring.changeSignature.ChangeSignatureDetectorAction;
import com.intellij.refactoring.changeSignature.ChangeSignatureGestureDetector;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
import junit.framework.Assert;
import java.util.List;
@@ -62,9 +61,10 @@ public class ChangeSignatureGestureTest extends LightCodeInsightFixtureTestCase
final IntentionAction intention = myFixture.findSingleIntention(hint);
myFixture.launchAction(intention);
myFixture.checkResultByFile("/refactoring/changeSignatureGesture/" + getTestName(false) + "_after.java");
} else {
}
else {
final List<IntentionAction> intentionActions = myFixture.filterAvailableIntentions(hint);
Assert.assertEquals(true, intentionActions.isEmpty());
assertEmpty(intentionActions);
}
}
finally {
@@ -298,7 +298,7 @@ public class FindUsagesManager implements JDOMExternalizable {
return used.get();
}
private static boolean isInComment(Usage usage) {
private static boolean isInComment(@NotNull Usage usage) {
if (!(usage instanceof UsageInfo2UsageAdapter)) return false;
UsageInfo usageInfo = ((UsageInfo2UsageAdapter)usage).getUsageInfo();
if (!usageInfo.isNonCodeUsage()) return false;