Java:S6833,false-positive with @RestController

Hi @yanggaojun101,

Welcome to the community,

Thank you for reporting this false positive. I don’t know how we miss it when implementing the rule. I have created a ticket to fix it and you can track its progress here. For now, you can mark the issue as an FP.