mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
more java tests moved to community
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
public void run() {
|
||||
//noinspection UnusedDeclaration
|
||||
int <caret>i = 0;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Suppress for method" "true"
|
||||
class a {
|
||||
/** @noinspection UnusedDeclaration*/
|
||||
private void <caret>run() {
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Suppress for method" "true"
|
||||
import java.io.IOException;
|
||||
class a {
|
||||
/** @noinspection RedundantThrowsDeclaration*/
|
||||
private void run() throws <caret>IOException{
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
int b;
|
||||
private void aa(){
|
||||
//noinspection deprecation
|
||||
b++;
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void aa(){
|
||||
}
|
||||
|
||||
private void aaa(){
|
||||
//noinspection deprecation
|
||||
<caret>aa();
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
public void aa(){
|
||||
int a = 0;
|
||||
//noinspection SillyAssignment
|
||||
<caret>a = a;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
static void setA(){
|
||||
}
|
||||
void b(){
|
||||
//noinspection AccessStaticViaInstance
|
||||
<caret>new a().setA();
|
||||
}
|
||||
}
|
||||
+19
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
public void run() {
|
||||
int <caret>i = 0;
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Suppress for method" "true"
|
||||
class a {
|
||||
private void <caret>run() {
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Suppress for method" "true"
|
||||
import java.io.IOException;
|
||||
class a {
|
||||
private void run() throws <caret>IOException{
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
int b;
|
||||
private void aa(){
|
||||
<caret>b++;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public void aa(){
|
||||
}
|
||||
|
||||
private void aaa(){
|
||||
<caret>aa();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
public void aa(){
|
||||
int a = 0;
|
||||
<caret>a = a;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
static void setA(){
|
||||
}
|
||||
void b(){
|
||||
<caret>new a().setA();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Suppress for method" "false"
|
||||
/** @noinspection UNUSED_SYMBOL*/
|
||||
class a {
|
||||
private void run() {
|
||||
}
|
||||
}
|
||||
+18
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user