private static int calculateBeginLine ( RuleViolation pmdViolation ) { int minLine = Math . min ( pmdViolation . getBeginLine ( ) , pmdViolation . getEndLine ( ) ) ; return minLine > 0 ? minLine : calculateEndLine ( pmdViolation ) ; }
Calculates the beginLine of a violation report .