3

I am working with Java and Jersey in NetBeans and all my endpoints are flagged with the following hint: "Convert Method To Asynchronous"

This hint really pollutes the right-hand gutter where I usually look for code changes/errors.

There is nothing in preferences -> editor -> hints that seems to affect this hint.

Cheers

preston.m.price
  • 646
  • 1
  • 10
  • 17
  • Possible duplicate of [Netbeans: How to disable this single annoying warning?](https://stackoverflow.com/questions/32797520/netbeans-how-to-disable-this-single-annoying-warning) – user10089632 Apr 12 '18 at 17:12

3 Answers3

0

You can use the @SupressWarning annotation, or, by hovering the mouse-pointer over the warning, there are options to disable for instance (auto-generates @SupressWarning), for file, for package, for project or "forever" (pah-dum-pshh =P).

However, most warnings are there for a reason, and although some can show up by "mistake" while your class isn't fully implemented yet, if your class is complete and a warning is still present, you're advised to correct it rather than suppress it.

CosmicGiant
  • 6,275
  • 5
  • 43
  • 58
0

I checked through the NetBeans source code (here) and there's no way to disable/suppress that warning short of removing the REST module (/enterprise/modules/org-netbeans-modules-webscv-rest.jar).

Tuukka
  • 31
  • 3
0

Did you use lombok? if yes you can remove the lombok library first then add it again

aswzen
  • 1,512
  • 29
  • 46