variable array fix: don't create fix if it can't be applied when there is no variable in the context

EA-54266 - ISE: VariableArrayTypeFix.getText
This commit is contained in:
Anna.Kozlova
2016-10-12 18:22:05 +02:00
parent 2dae26057a
commit 88b28233e8
5 changed files with 35 additions and 14 deletions
@@ -0,0 +1,13 @@
import java.util.*;
class FooClass {
{
Set[][] a = null;
a[0] = new Set[]{ <error descr="Incompatible types. Found: 'java.util.List', required: 'java.util.Set'">fooBar()</error>, <error descr="Incompatible types. Found: 'java.util.List', required: 'java.util.Set'">fooBar()</error>};
}
private List fooBar() {
return null;
}
}