mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-live-templates] Test-data fixed after updating the toar template
GitOrigin-RevId: d59298640a8f6bec732dc1b5fa877bc0609ba9e0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8b47eba13d
commit
ff63a09c32
@@ -4,6 +4,6 @@ import java.util.List;
|
||||
class Foo {
|
||||
|
||||
static void foo(List<String> ls) {
|
||||
List<String> ls2 = Arrays.asList(ls.toArray(new String[ls.size()])<caret>);
|
||||
List<String> ls2 = Arrays.asList(ls.toArray(new String[0])<caret>);
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,6 @@ import java.util.*;
|
||||
class Foo {
|
||||
{
|
||||
List<String> l;
|
||||
String[] s = l.toArray(new String[l.size()])<caret>
|
||||
String[] s = l.toArray(new String[0])<caret>
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ public class LiveTemplateTest {
|
||||
void foo(String... messages){}
|
||||
void usage(){
|
||||
List<String> messages = new ArrayList<String>();
|
||||
foo(messages.toArray(new <selection>String<caret></selection>[messages.size()]));
|
||||
foo(messages.toArray(new <selection>String<caret></selection>[0]));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user