more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 10:48:17 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}