fix silly assignment tests

This commit is contained in:
Bas Leijdekkers
2016-08-02 13:57:18 +02:00
parent 3ce4f8dfa2
commit d543f426ad
6 changed files with 6 additions and 6 deletions

View File

@@ -3,6 +3,6 @@ class a {
public void aa(){
int a = 0;
//noinspection SillyAssignment
<caret>a = a;
a = <caret>a;
}
}

View File

@@ -2,6 +2,6 @@
class a {
public void aa(){
int a = 0;
<caret>a = a;
a = <caret>a;
}
}

View File

@@ -2,7 +2,7 @@ package suppressed;
class ExistingExternalName {
String foo(){
String str = "";
s<caret>tr = str;
str = st<caret>r;
return str;
}
}

View File

@@ -2,6 +2,6 @@ package suppressed;
class NewSuppress {
void barr() {
String str = "";
st<caret>r = str;
str = st<caret>r;
}
}

View File

@@ -2,6 +2,6 @@ package suppressed;
class SecondSuppression {
void second() {
String str = "";
st<caret>r = str;
str = st<caret>r;
}
}

View File

@@ -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"() {