mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 19:29:30 +07:00
override clone specifics (IDEA-67754)
This commit is contained in:
+13
-1
@@ -1,7 +1,19 @@
|
||||
interface MyCloneable {
|
||||
|
||||
//protected method from java.lang.Object is not implicitly declared in interface with no base interfaces
|
||||
<error descr="'clone()' in 'MyCloneable' clashes with 'clone()' in 'java.lang.Object'; attempting to use incompatible return type">int</error> clone();
|
||||
int clone();
|
||||
|
||||
<error descr="'toString()' in 'MyCloneable' clashes with 'toString()' in 'java.lang.Object'; attempting to use incompatible return type">int</error> toString();
|
||||
}
|
||||
|
||||
interface MyCloneable1 {
|
||||
<error descr="Method does not override method from its superclass">@Override</error>
|
||||
Object clone();
|
||||
}
|
||||
|
||||
class MyCloneable2 {
|
||||
@Override
|
||||
public Object clone() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user