S3516: FP when return type is Void

Hi,

indeed this is a false positive (and quite a corner case, but no reason not to fix it!). Thanks for the feedback and reproducer, ticket created to handle the issue: https://jira.sonarsource.com/browse/SONARJAVA-3155

1 Like