Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - @Deprecated warning hides java docs pop up

In Eclipse Neon, when adding @Deprecated to method for example,

The Sonar S1133 warning of removing the deprecated method is blocking seeing the java docs of the method (when hovering over)

It prevents following @deprecated links.

Is there a way around it expect ignoring this specific warning? I just don't want it to block the java docs pop up

I saw that you can use F2 to open pop up, but it's also show sonar warning instead.

Is it eclipse issue of pop up or sonar plugin issue that can be opened?

EDIT

The only solution I found is to deactivate this specific sonar warning

like image 529
user7294900 Avatar asked Oct 15 '25 18:10

user7294900


1 Answers

Searching for this same issue, I came upon this unreplied question. Digging some more, I've found a workaround. I'm using Eclipse Simrel 06-19.

Just check (or configure as you like) your hover preferences in Window->Preferences. Select in the tree Java->Editor->Hovers

This is my current (also the default) configuration: Java editor hover preferences

On your specific case (as happened to me) you could just press Ctrl+Shift while hovering to display javadoc instead of the warning description (or just Shift to see the source).

Samples with the above config:

With no key held: enter image description here

With Ctrl + Shift: enter image description here

With Shift: enter image description here Hope this helps (although a bit late!)

like image 180
David G. Avatar answered Oct 17 '25 13:10

David G.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!