SonarQube抱怨将ResponseEntity与通配符一起使用

SonarQube抱怨将ResponseEntity与通配符一起使用,第1张

SonarQube抱怨将ResponseEntity与通配符一起使用

最终,我

<?>
从返回值中删除了代码,现在代码如下所示:

@PostMappingResponseEntity addSomething(@RequestBody Some object) {    // some pre there    return new ResponseEntity<>(HttpStatus.NO_CONTENT);}

SonarQube不再抱怨了,现在的代码似乎更简单了。



欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/zaji/4899905.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-12
下一篇2022-11-12

发表评论

登录后才能评论

评论列表(0条)

    保存