最终,我
<?>从返回值中删除了代码,现在代码如下所示:
@PostMappingResponseEntity addSomething(@RequestBody Some object) { // some pre there return new ResponseEntity<>(HttpStatus.NO_CONTENT);}SonarQube不再抱怨了,现在的代码似乎更简单了。

最终,我
<?>从返回值中删除了代码,现在代码如下所示:
@PostMappingResponseEntity addSomething(@RequestBody Some object) { // some pre there return new ResponseEntity<>(HttpStatus.NO_CONTENT);}SonarQube不再抱怨了,现在的代码似乎更简单了。