Files
kotlin-fork/j2k/testData/fileOrElement/objectLiteral/MyFrame.java
T
Natalia Ukhorskaya ee860fdde5 J2K: Insert class body for anonymous classes
#KT-8952 Fixed
2015-09-11 15:21:39 +03:00

41 lines
760 B
Java
Vendored

//file
package demo;
interface WindowListener {
void windowClosing ();
}
interface EmptyWindowListener {
}
open class EmptyWindowAdapter : EmptyWindowListener {}
class WindowAdapter implements WindowListener {
public void windowClosing () {
}
}
class Frame {
public void addWindowListener(WindowListener listener){}
}
public final class Client extends Frame {
Client() {
WindowAdapter a = new WindowAdapter() {
@Override
public void windowClosing () {
}
};
addWindowListener(a);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing () {
}
});
EmptyWindowListener b = new EmptyWindowListener() {};
EmptyWindowAdapter c = new EmptyWindowAdapter() {};
}
}