mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
more java tests moved to community
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Replace l.addAll(objs) with java.util.Collections.addAll(l, objs)" "true"
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
class A {
|
||||
public static void main(String[] args){
|
||||
List l = new List();
|
||||
Object [] objs = new Object[0];
|
||||
Collections.addAll(l, objs);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace addAll(objs) with java.util.Collections.addAll(this, objs)" "true"
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
class A implements List {
|
||||
public static void main(String[] args){
|
||||
Object[] objs = new Object[0];
|
||||
Collections.addAll(this, objs);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace l.addAll(objs) with java.util.Collections.addAll(l, objs)" "true"
|
||||
import java.util.List;
|
||||
|
||||
class A {
|
||||
public static void main(String[] args){
|
||||
List l = new List();
|
||||
Object [] objs = new Object[0];
|
||||
l.addAll(<caret>objs);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace addAll(objs) with java.util.Collections.addAll(this, objs)" "true"
|
||||
import java.util.List;
|
||||
|
||||
class A implements List {
|
||||
public static void main(String[] args){
|
||||
Object[] objs = new Object[0];
|
||||
addAll(<caret>objs);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace l.removeAll(objs) with java.util.Collections.addAll(l, objs)" "false"
|
||||
class T {
|
||||
public static void main(String[] args){
|
||||
List l = new List();
|
||||
Object[] objs = new Object[0];
|
||||
l.removeAll(<caret>objs);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user