Community
Participate
Working Groups
Created attachment 272779 [details] Screenshot Redundant modifiers could be removed automatically by a cleanup action: - interface field declarations: public, static, final - interface method declarations: public - nested interfaces: static - method declarations in final classes: final Attached screenshot shows the configuration of such a cleanup action on the Unnecessary Code tab.
New Gerrit change created: https://git.eclipse.org/r/117833
Interesting proposal. For a minute I was thinking: since interface methods can also be *private*, an explicit *public* could help to make code more explicit about a relevant choice. Only then I realized, that this is not a source for potential confusion, because private methods have a body whereas public ones don't. So, I agree, all of the modifiers you mention don't really add value, and removing them is suited for clean-up.
I got this set of rules from Sonar warnings :)
(In reply to Karsten Thoms from comment #3) > I got this set of rules from Sonar warnings :) So I agree with Sonar, for once :)
+1, this will be very useful.
Gerrit change https://git.eclipse.org/r/117833 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=a61ff1140c60ebdf403de50727d346dcd75edd69
Will add N&N entry
New Gerrit change created: https://git.eclipse.org/r/121847
Gerrit change https://git.eclipse.org/r/121847 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=7bab2cdd702e33c108de12afc61b52fe97f7f22d
Verified with JDT 3.14.0.v20180425-2000 N&N entry added
Please add a mnemonic to the new option.
New Gerrit change created: https://git.eclipse.org/r/121998
(In reply to Noopur Gupta from comment #11) > Please add a mnemonic to the new option. Done via the Gerrit. Also noticed that on this page two other mnemonics are missing and opened Bug 534245 for that.
Gerrit change https://git.eclipse.org/r/121998 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=5b122533f3faa694a769e8c336da7eae149944ef
Version: Photon (4.8) Build id: I20180507-2205
Can we close Bug 130888 now?