J2K: Insert class body for anonymous classes
#KT-8952 Fixed
This commit is contained in:
@@ -5,6 +5,11 @@ interface WindowListener {
|
||||
void windowClosing ();
|
||||
}
|
||||
|
||||
interface EmptyWindowListener {
|
||||
}
|
||||
|
||||
open class EmptyWindowAdapter : EmptyWindowListener {}
|
||||
|
||||
class WindowAdapter implements WindowListener {
|
||||
public void windowClosing () {
|
||||
}
|
||||
@@ -29,5 +34,8 @@ public final class Client extends Frame {
|
||||
public void windowClosing () {
|
||||
}
|
||||
});
|
||||
|
||||
EmptyWindowListener b = new EmptyWindowListener() {};
|
||||
EmptyWindowAdapter c = new EmptyWindowAdapter() {};
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,9 @@ interface WindowListener {
|
||||
public fun windowClosing()
|
||||
}
|
||||
|
||||
interface EmptyWindowListener
|
||||
open class EmptyWindowAdapter
|
||||
|
||||
open class WindowAdapter : WindowListener {
|
||||
override fun windowClosing() {
|
||||
}
|
||||
@@ -27,5 +30,12 @@ public class Client : Frame() {
|
||||
override fun windowClosing() {
|
||||
}
|
||||
})
|
||||
|
||||
val b = object : EmptyWindowListener {
|
||||
|
||||
}
|
||||
val c = object : EmptyWindowAdapter() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user