'vscode with java: how to suppress warning by line

Although there are many questions and answers on disabling warnings in vscode used as a java ide, I did not find anything to suppress a warning punctually at a given line. I think of a feature like PMD which uses some comment to that end.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source