pmd: fix #1134 UseStringBufferLength false positives