mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests
This commit is contained in:
+5
-2
@@ -1,10 +1,13 @@
|
||||
import java.awt.event.*;
|
||||
|
||||
class A {
|
||||
private ActionListener b = new Inner();
|
||||
|
||||
private class <caret>Inner implements ActionListener {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
public void actionPerformed(int e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
interface ActionListener {
|
||||
public void actionPerformed(int e);
|
||||
|
||||
}
|
||||
+5
-2
@@ -1,9 +1,12 @@
|
||||
import java.awt.event.*;
|
||||
|
||||
class A {
|
||||
private ActionListener b = new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
public void actionPerformed(int e) {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
interface ActionListener {
|
||||
public void actionPerformed(int e);
|
||||
|
||||
}
|
||||
+5
-2
@@ -1,4 +1,3 @@
|
||||
import java.awt.event.*;
|
||||
|
||||
class A {
|
||||
private ActionListener b = new Inner();
|
||||
@@ -7,7 +6,11 @@ class A {
|
||||
}
|
||||
|
||||
private class <caret>Inner extends MyActionListener implements ActionListener {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
public void actionPerformed(int e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
interface ActionListener {
|
||||
public void actionPerformed(int e);
|
||||
|
||||
}
|
||||
+5
-2
@@ -1,12 +1,15 @@
|
||||
import java.awt.event.*;
|
||||
|
||||
class A {
|
||||
private ActionListener b = new MyActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
public void actionPerformed(int e) {
|
||||
}
|
||||
};
|
||||
|
||||
private abstract class MyActionListener implements ActionListener {
|
||||
}
|
||||
|
||||
}
|
||||
interface ActionListener {
|
||||
public void actionPerformed(int e);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user