mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
15 lines
448 B
Java
15 lines
448 B
Java
|
|
interface ConflictWithObject {
|
|
<error descr="'notify()' cannot override 'notify()' in 'java.lang.Object'; overridden method is final">public void notify()</error>;
|
|
}
|
|
|
|
//--override final-------------------------------------------------------------------------
|
|
class base {
|
|
final void f() {}
|
|
}
|
|
class derived extends base {
|
|
|
|
<error descr="'f()' cannot override 'f()' in 'base'; overridden method is final">void f()</error> {}
|
|
|
|
}
|