I checked UnnecessaryLocalBeforeReturn with the following code:
int res = xxx; assert res>=0; return res;
This should be ok. I think the assertion is ignored.
Thanks for reporting! This bug will be fixed with PMD 5.4.4, 5.5.3 and later.
Log in to post a comment.
Thanks for reporting!
This bug will be fixed with PMD 5.4.4, 5.5.3 and later.