default methods: do not warn about protected methods from Object

This commit is contained in:
Anna Kozlova
2014-02-27 21:29:00 +01:00
parent 5dd3ae6d5d
commit cf066deca7
2 changed files with 4 additions and 2 deletions

View File

@@ -2,4 +2,5 @@ interface A {
default String <error descr="Default method 'toString' overrides a member of 'java.lang.Object'">toString</error>() {
return "";
}
default void finalize() throws Throwable { }
}