Community
Participate
Working Groups
3.0 m7 when i override a method and have a missing return statement, a quick fix could be offered to insert return that calls super
Can you be more specific of your post? May be with an example.
(In reply to Midhun Vishnukripa from comment #1) > Can you be more specific of your post? May be with an example. public class A { int foo() { return -1; } } class B extends A { @Override int foo() { // error - quick fix to add "return super.foo();" } } Also, with Java 8: interface I { default int foo() { return -1; } } class C implements I { @Override public int foo() { // error - quick fix to add "return I.super.foo();" } }
New Gerrit change created: https://git.eclipse.org/r/75869
New Gerrit change created: https://git.eclipse.org/r/75894
Midhun, please amend the same Gerrit request instead of creating new ones for the updates. Also, remove all the unnecessary changes like whitespace changes from the patch and make sure that there are no test failures in the build.