IG: fix containsConflictingDeclarations()

This commit is contained in:
Bas Leijdekkers
2017-10-22 19:41:59 +02:00
parent 415a04e4b6
commit b6a75ac21d
3 changed files with 32 additions and 9 deletions
@@ -0,0 +1,11 @@
// "Unwrap 'if' statement" "true"
class X {
void test(@org.jetbrains.annotations.NotNull String x) {
{
String str = x.trim();
System.out.println(str);
}
{{int str;}}
}
}
@@ -0,0 +1,11 @@
// "Unwrap 'if' statement" "true"
class X {
void test(@org.jetbrains.annotations.NotNull String x) {
if(x != <caret>null) {
String str = x.trim();
System.out.println(str);
}
{{int str;}}
}
}