mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
fix silly assignment tests
This commit is contained in:
@@ -3,6 +3,6 @@ class a {
|
||||
public void aa(){
|
||||
int a = 0;
|
||||
//noinspection SillyAssignment
|
||||
<caret>a = a;
|
||||
a = <caret>a;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
class a {
|
||||
public void aa(){
|
||||
int a = 0;
|
||||
<caret>a = a;
|
||||
a = <caret>a;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package suppressed;
|
||||
class ExistingExternalName {
|
||||
String foo(){
|
||||
String str = "";
|
||||
s<caret>tr = str;
|
||||
str = st<caret>r;
|
||||
return str;
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,6 @@ package suppressed;
|
||||
class NewSuppress {
|
||||
void barr() {
|
||||
String str = "";
|
||||
st<caret>r = str;
|
||||
str = st<caret>r;
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,6 @@ package suppressed;
|
||||
class SecondSuppression {
|
||||
void second() {
|
||||
String str = "";
|
||||
st<caret>r = str;
|
||||
str = st<caret>r;
|
||||
}
|
||||
}
|
||||
@@ -160,7 +160,7 @@ public class HighlightUsagesHandlerTest extends LightCodeInsightFixtureTestCase
|
||||
}'''.stripIndent()
|
||||
myFixture.enableInspections(new SillyAssignmentInspection())
|
||||
ctrlShiftF7()
|
||||
assertRangeText 'i = i'
|
||||
assertRangeText 'i'
|
||||
}
|
||||
|
||||
public void "test statically imported overloads from usage"() {
|
||||
|
||||
Reference in New Issue
Block a user