mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 14:37:45 +07:00
IDEA-163834 Smart completion for stream.toArray(..) arg loses "[]" after accepting - when array is of non-static inner class
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import java.util.stream.Stream;
|
||||
public class Outer {
|
||||
|
||||
class Inner { }
|
||||
|
||||
private Inner[] innerArr;
|
||||
|
||||
public Outer(Stream<Inner> numbers) {
|
||||
this.innerArr = numbers.toArray(Inner[]::new)<caret>;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import java.util.stream.Stream;
|
||||
public class Outer {
|
||||
|
||||
class Inner { }
|
||||
|
||||
private Inner[] innerArr;
|
||||
|
||||
public Outer(Stream<Inner> numbers) {
|
||||
this.innerArr = numbers.toArray(Ou<caret>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user