mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
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:
+13
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user