vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Dead code - false positive

Open drakgoku opened this issue 1 year ago • 2 comments

This false positive is yours, right? image

With this, I cannot customize the output response. image

In principle the response entity cannot be null unless you specify it as nullable. image

This does work. image

Fix this.

drakgoku avatar Aug 18 '24 21:08 drakgoku

@drakgoku Could you attach a project example reproducing the error?

snjeza avatar Aug 19 '24 03:08 snjeza

Sorry, it's not an example, it's a function of a microservice controller. I've updated the images, before the code was a test to show you the error. Now it's not. You can download the project in spring boot and make a controller and you'll see it. I'm using gradle kotlin dsl. But it shouldn't have any impact.

drakgoku avatar Aug 19 '24 16:08 drakgoku