mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+1
-1
@@ -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.
|
||||
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user