View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="NewlineAtEndOfFile">
4       <property name="lineSeparator" value="lf"/>
5     </module>
6   </module>
7   */
8   // violation 7 lines above 'ending for file is LF(\\n), but CRLF(\\r\\n) is'
9   package com.puppycrawl.tools.checkstyle.checks.newlineatendoffile;
10  // xdoc section -- start
11  public class Example3 { // ⤶
12  } // ␍⤶  it is violation as line ending is different from expected
13  // xdoc section -- end