The following example produces with PMD 5.0.0 a false +:
[code] String oneDay = "day"; String moreDays = "days"; int dayCount = 4; String description = dayCount + " " + (dayCount == 1 ? oneDay : moreDays); [/code]
Code: code
This will be fixed for PMD 5.1.
Log in to post a comment.
This will be fixed for PMD 5.1.