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,9 @@
// "Reuse previous variable 'i' declaration" "true"
import java.io.*;
class a {
void f(int i) {
i = 234 / 5 + 7;
}
}

View File

@@ -0,0 +1,11 @@
// "Reuse previous variable 'k' declaration" "true"
import java.io.*;
class a {
void f(int i) {
int k = 234/5+7;
int h = 7;
k = 234 / 5 + 7;
}
}

View File

@@ -0,0 +1,9 @@
// "Reuse previous variable 'i' declaration" "true"
import java.io.*;
class a {
void f(int i) {
int h = 7;
}
}

View File

@@ -0,0 +1,9 @@
// "Reuse previous variable 'i' declaration" "true"
import java.io.*;
class a {
void f(int i) {
int <caret>i = 234/5+7;
}
}

View File

@@ -0,0 +1,11 @@
// "Reuse previous variable 'k' declaration" "true"
import java.io.*;
class a {
void f(int i) {
final int k = 234/5+7;
int h = 7;
int <caret>k = 234/5+7;
}
}

View File

@@ -0,0 +1,10 @@
// "Reuse previous variable 'i' declaration" "true"
import java.io.*;
class a {
void f(int i) {
final int <caret>i;
int h = 7;
}
}

View File

@@ -0,0 +1,10 @@
// "Reuse previous variable 'i' declaration" "false"
import java.io.*;
class a {
void f(int i) {
final short <caret>i;
int h = 7;
}
}

View File

@@ -0,0 +1,11 @@
// "Reuse previous variable 'i' declaration" "false"
import java.io.*;
class a {
int i;
void f() {
final int <caret>i;
int h = 7;
}
}

View File

@@ -0,0 +1,11 @@
// "Reuse previous variable 'i' declaration" "false"
import java.io.*;
class a {
int i;
final int <caret>i;
void f() {
int h = 7;
}
}