J2K: Insert class body for anonymous classes

#KT-8952 Fixed
This commit is contained in:
Natalia Ukhorskaya
2015-09-07 16:41:35 +03:00
parent 1394e646b7
commit ee860fdde5
5 changed files with 28 additions and 7 deletions
+8
View File
@@ -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() {};
}
}
+10
View File
@@ -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() {
}
}
}