pmd: fix #1045 //NOPMD not working (or not implemented) with ECMAscript