code simplification

git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1608113 13f79535-47bb-0310-9956-ffa450edef68
[MCHECKSTYLE-236] added Rule name to violation message

git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1608114 13f79535-47bb-0310-9956-ffa450edef68