-
Hi there, I have a problem with how I use HttpRequest, Sonar always complains that I'm using it as raw: Can you point me to an example or explain to me how should I address that? I am really confused because it seems that I should parametrize it with a class that also extends from HttpRequest: I'm using Unirest 3.13.6 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
yes, the type is recursive because it's a builder and as you get more specific there are instances of the builder that have new options (posts can have bodies, gets cant, multi-part bodies have options that single part's cant, etc) There isn't anything wrong with how you are using it, Sonar is just a suggestion, it's not always right. But you can probably get it to shut up with |
Beta Was this translation helpful? Give feedback.
yes, the type is recursive because it's a builder and as you get more specific there are instances of the builder that have new options (posts can have bodies, gets cant, multi-part bodies have options that single part's cant, etc)
There isn't anything wrong with how you are using it, Sonar is just a suggestion, it's not always right. But you can probably get it to shut up with
HttpRequest<?> request = ...