mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
remove size() from collection.toArray() smart completion (IDEA-142273)
This commit is contained in:
-10
@@ -1,10 +0,0 @@
|
||||
import java.util.Collection;
|
||||
|
||||
class Foo {
|
||||
|
||||
{
|
||||
Collection<Foo> foos;
|
||||
Foo[] f = foos.toArray(new Foo[foos.size()]);<caret>
|
||||
}
|
||||
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
import java.util.Collection;
|
||||
|
||||
class Foo {
|
||||
|
||||
{
|
||||
Collection<Foo> foos;
|
||||
Foo[] f = <caret>
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -7,7 +7,7 @@ class Bar {
|
||||
class Foo {
|
||||
|
||||
{
|
||||
Foo[] f = Bar.foos.toArray(new Foo[Bar.foos.size()]);<caret>
|
||||
Foo[] f = Bar.foos.toArray(new Foo[0]);<caret>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user