mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
non reifiable types: erase to avoid illegal generics array creation (IDEA-195562)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Transform 'a' into final one element array" "true"
|
||||
import java.util.*;
|
||||
class Test {
|
||||
public void test() {
|
||||
final List<String>[] a = new List[]{new ArrayList<>()};
|
||||
Runnable r = () -> {
|
||||
a[0] = new ArrayList<>();
|
||||
};
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Transform 'a' into final one element array" "true"
|
||||
import java.util.*;
|
||||
class Test {
|
||||
public void test() {
|
||||
List<String> a = new ArrayList<>();
|
||||
Runnable r = () -> {
|
||||
<caret>a = new ArrayList<>();
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user