pmd: fixed #1064 Exception running PrematureDeclaration