@Override
 protected CheckstyleWarning mapToWarning(final CheckStyleError violation) {
   CheckstyleWarning warning = new CheckstyleWarning();
   warning.setMessage(violation.getMessage());
   warning.setSeverity(violation.getSeverity());
   return warning;
 }
 @Override
 protected int getLineNumber(final CheckStyleError violation) {
   return violation.getLine() == 0 ? 1 : violation.getLine();
 }