mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
more java tests moved to community
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
void bar(String[] args){
|
||||
}
|
||||
|
||||
void foo(String s){
|
||||
bar(new String[]{s});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
|
||||
void foo(){
|
||||
sort(new String[]{"String"}, "String");
|
||||
}
|
||||
|
||||
<T extends String, Q> void sort(T[] a, Q q){}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
void bar(int i, String[] args){
|
||||
}
|
||||
|
||||
void foo(String s){
|
||||
bar(1, new String[]{s});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
void bar(int i, String[] args){
|
||||
}
|
||||
|
||||
void bar(int i, int j){}
|
||||
|
||||
void foo(String s){
|
||||
bar(1, new String[]{s});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
A(String[] s){}
|
||||
|
||||
void foo(String s){
|
||||
new A(new String[]{s});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
|
||||
String[] foo(){
|
||||
return new String[]{""};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Surround with array initialization" "true"
|
||||
import java.util.*;
|
||||
class A {
|
||||
|
||||
void foo(){
|
||||
Arrays.sort(new String[]{"Str"}, new Comparator<String>(){
|
||||
public int compare(String o1, String o2) {
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
void bar(String[] args){
|
||||
}
|
||||
|
||||
void foo(String s){
|
||||
bar(<caret>s);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
|
||||
void foo(){
|
||||
sort(<caret>"String", "String");
|
||||
}
|
||||
|
||||
<T extends String, Q> void sort(T[] a, Q q){}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "false"
|
||||
class A {
|
||||
void bar(int arg){
|
||||
}
|
||||
|
||||
void foo(String s){
|
||||
bar(<caret>s);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
void bar(int i, String[] args){
|
||||
}
|
||||
|
||||
void foo(String s){
|
||||
bar(1, <caret>s);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "false"
|
||||
class A {
|
||||
void bar(int i, String[] args){
|
||||
}
|
||||
|
||||
void foo(String s){
|
||||
bar(<caret>1, s);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
void bar(int i, String[] args){
|
||||
}
|
||||
|
||||
void bar(int i, int j){}
|
||||
|
||||
void foo(String s){
|
||||
bar(1, <caret>s);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
A(String[] s){}
|
||||
|
||||
void foo(String s){
|
||||
new A(<caret>s);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Surround with array initialization" "true"
|
||||
class A {
|
||||
|
||||
String[] foo(){
|
||||
return <caret>"";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Surround with array initialization" "true"
|
||||
import java.util.*;
|
||||
class A {
|
||||
|
||||
void foo(){
|
||||
Arrays.sort(<caret>"Str", new Comparator<String>(){
|
||||
public int compare(String o1, String o2) {
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Surround with array initialization" "false"
|
||||
class A {
|
||||
|
||||
void foo(){
|
||||
sort(<caret>"String", "String");
|
||||
}
|
||||
|
||||
<T extends Integer, Q> void sort(T[] a, Q q){}
|
||||
}
|
||||
Reference in New Issue
Block a user