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,13 @@
|
||||
// "Cast parameter to 'int'" "true"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
private void test(String s) {}
|
||||
private void test(Object o) {}
|
||||
private void test(char c,char f) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>(int) 2.2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast 1st parameter to 'char'" "true"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
private void test(String s) {}
|
||||
private void test(Object o) {}
|
||||
private void test(char c,char f) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>(char) 2.2, 'd');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast 2nd parameter to 'char'" "true"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
private void test(String s) {}
|
||||
private void test(Object o) {}
|
||||
private void test(char c,char f) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>'d', (char) 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Cast 1st parameter to 'double'" "true"
|
||||
class a {
|
||||
void test() {}
|
||||
void test(int i) {}
|
||||
void test(String s) {}
|
||||
void test(Object o) {}
|
||||
void test(int i,double d) {}
|
||||
void test(double d,int i) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>(double) 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Cast 2nd parameter to 'double'" "true"
|
||||
class a {
|
||||
void test() {}
|
||||
void test(int i) {}
|
||||
void test(String s) {}
|
||||
void test(Object o) {}
|
||||
void test(int i,double d) {}
|
||||
void test(double d,int i) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>0, (double) 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Cast parameter to 'a'" "true"
|
||||
class a {
|
||||
void test() {}
|
||||
void test(int i) {}
|
||||
void test(String s) {}
|
||||
void test(a o) {}
|
||||
void test(int i,double d) {}
|
||||
void test(double d,int i) {}
|
||||
|
||||
void f(Runnable r) {
|
||||
test(<caret>(a) r);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Cast 2nd parameter to 'java.lang.Throwable'" "true"
|
||||
class a {
|
||||
void f(Throwable a, Throwable b) {}
|
||||
void g() {
|
||||
Exception e=null;
|
||||
Object o = null;
|
||||
f(<caret>e, (Throwable) o);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast parameter to 'int'" "true"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
private void test(String s) {}
|
||||
private void test(Object o) {}
|
||||
private void test(char c,char f) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>2.2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast 1st parameter to 'char'" "true"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
private void test(String s) {}
|
||||
private void test(Object o) {}
|
||||
private void test(char c,char f) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>2.2, 'd');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast 2nd parameter to 'char'" "true"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
private void test(String s) {}
|
||||
private void test(Object o) {}
|
||||
private void test(char c,char f) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>'d', 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Cast 1st parameter to 'char'" "false"
|
||||
class a {
|
||||
private void test() {}
|
||||
private void test(int i) {}
|
||||
private void test(String s) {}
|
||||
private void test(Object o) {}
|
||||
private void test(char c,char f) {}
|
||||
private void test(int c, char f) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Cast 1st parameter to 'double'" "true"
|
||||
class a {
|
||||
void test() {}
|
||||
void test(int i) {}
|
||||
void test(String s) {}
|
||||
void test(Object o) {}
|
||||
void test(int i,double d) {}
|
||||
void test(double d,int i) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Cast 2nd parameter to 'double'" "true"
|
||||
class a {
|
||||
void test() {}
|
||||
void test(int i) {}
|
||||
void test(String s) {}
|
||||
void test(Object o) {}
|
||||
void test(int i,double d) {}
|
||||
void test(double d,int i) {}
|
||||
|
||||
void f() {
|
||||
test(<caret>0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Cast parameter to 'a'" "true"
|
||||
class a {
|
||||
void test() {}
|
||||
void test(int i) {}
|
||||
void test(String s) {}
|
||||
void test(a o) {}
|
||||
void test(int i,double d) {}
|
||||
void test(double d,int i) {}
|
||||
|
||||
void f(Runnable r) {
|
||||
test(<caret>r);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Cast 2nd parameter to 'java.lang.Throwable'" "true"
|
||||
class a {
|
||||
void f(Throwable a, Throwable b) {}
|
||||
void g() {
|
||||
Exception e=null;
|
||||
Object o = null;
|
||||
f(<caret>e,o);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Cast 1st parameter to 'java.lang.Throwable'" "false"
|
||||
class a {
|
||||
void f(Throwable a, Throwable b) {}
|
||||
void g() {
|
||||
Exception e=null;
|
||||
Object o = null;
|
||||
f(<caret>e,o);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user