more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 12:46:40 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions
@@ -0,0 +1,7 @@
// "Suppress for statement" "true"
class a {
public void run() {
//noinspection UnusedDeclaration
int <caret>i = 0;
}
}
@@ -0,0 +1,6 @@
// "Suppress for method" "true"
class a {
/** @noinspection UnusedDeclaration*/
private void <caret>run() {
}
}
@@ -0,0 +1,7 @@
// "Suppress for method" "true"
import java.io.IOException;
class a {
/** @noinspection RedundantThrowsDeclaration*/
private void run() throws <caret>IOException{
}
}
@@ -0,0 +1,11 @@
// "Suppress for statement" "true"
class a {
/**
* @deprecated
*/
int b;
private void aa(){
//noinspection deprecation
b++;
}
}
@@ -0,0 +1,13 @@
// "Suppress for statement" "true"
class a {
/**
* @deprecated
*/
public void aa(){
}
private void aaa(){
//noinspection deprecation
<caret>aa();
}
}
@@ -0,0 +1,8 @@
// "Suppress for statement" "true"
class a {
public void aa(){
int a = 0;
//noinspection SillyAssignment
<caret>a = a;
}
}
@@ -0,0 +1,9 @@
// "Suppress for statement" "true"
class a {
static void setA(){
}
void b(){
//noinspection AccessStaticViaInstance
<caret>new a().setA();
}
}
@@ -0,0 +1,19 @@
// "Suppress for class" "true"
public class Test {
public void test() {
Inner inner = new Inner();
}
/** @noinspection deprecation*/
private static class Inner {
/**
* @deprecated
*/
int i;
public void unused() {
i++;
}
}
}
@@ -0,0 +1,6 @@
// "Suppress for statement" "true"
class a {
public void run() {
int <caret>i = 0;
}
}
@@ -0,0 +1,5 @@
// "Suppress for method" "true"
class a {
private void <caret>run() {
}
}
@@ -0,0 +1,6 @@
// "Suppress for method" "true"
import java.io.IOException;
class a {
private void run() throws <caret>IOException{
}
}
@@ -0,0 +1,10 @@
// "Suppress for statement" "true"
class a {
/**
* @deprecated
*/
int b;
private void aa(){
<caret>b++;
}
}
@@ -0,0 +1,12 @@
// "Suppress for statement" "true"
class a {
/**
* @deprecated
*/
public void aa(){
}
private void aaa(){
<caret>aa();
}
}
@@ -0,0 +1,7 @@
// "Suppress for statement" "true"
class a {
public void aa(){
int a = 0;
<caret>a = a;
}
}
@@ -0,0 +1,8 @@
// "Suppress for statement" "true"
class a {
static void setA(){
}
void b(){
<caret>new a().setA();
}
}
@@ -0,0 +1,6 @@
// "Suppress for method" "false"
/** @noinspection UNUSED_SYMBOL*/
class a {
private void run() {
}
}
@@ -0,0 +1,18 @@
// "Suppress for class" "true"
public class Test {
public void test() {
Inner inner = new Inner();
}
private static class Inner {
/**
* @deprecated
*/
int i;
public void unused() {
<caret>i++;
}
}
}