mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
more java tests moved to community
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Suppress for method" "true"
|
||||
class a {
|
||||
/** @noinspection LocalCanBeFinal*/
|
||||
public void run(int <caret>i) {
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Suppress for method" "true"
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ActionListener listener = new ActionListener() {
|
||||
/** @noinspection LocalCanBeFinal*/
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
int i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Suppress for class" "true"
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
/** @noinspection LocalCanBeFinal*/
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ActionListener listener = new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
int i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
public void run() {
|
||||
//noinspection LocalCanBeFinal
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Suppress for class" "true"
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
/** @noinspection LocalCanBeFinal*/
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ActionListener listener = new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Suppress for class" "true"
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
|
||||
/** @noinspection LocalCanBeFinal*/
|
||||
class T {
|
||||
void foo() {
|
||||
int i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Suppress for method" "true"
|
||||
class a {
|
||||
public void run(int <caret>i) {
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Suppress for method" "true"
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ActionListener listener = new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Suppress for class" "true"
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ActionListener listener = new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Suppress for statement" "true"
|
||||
class a {
|
||||
public void run() {
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Suppress for statement" "false"
|
||||
class a {
|
||||
public void run() {
|
||||
// noinspection LocalCanBeFinal
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Suppress for method" "false"
|
||||
/** @noinspection LocalCanBeFinal*/
|
||||
class a {
|
||||
public void run() {
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Suppress for field" "false"
|
||||
/** @noinspection ALL*/
|
||||
class a {
|
||||
static private String mm = "00";
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Suppress for method" "false"
|
||||
/** @noinspection ALL*/
|
||||
class a {
|
||||
public void run() {
|
||||
int <caret>i = 0;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Suppress for class" "true"
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
ActionListener listener = new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Suppress for class" "true"
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
|
||||
class T {
|
||||
void foo() {
|
||||
int <caret>i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user