View Javadoc
1   /*
2   EmptyLineSeparator
3   allowNoEmptyLineBetweenFields = (default)false
4   allowMultipleEmptyLines = (default)true
5   allowMultipleEmptyLinesInsideClassMembers = false
6   tokens = CLASS_DEF
7   
8   
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.whitespace.emptylineseparator;
12  
13  public abstract class InputEmptyLineSeparatorMultipleEmptyLinesInside3
14  {
15      public InputEmptyLineSeparatorMultipleEmptyLinesInside3() {
16          // empty lines below
17  
18  
19      }
20  
21      private int counter;
22  
23      private Object obj = null;
24  
25      abstract int generateSrc(String s);
26  
27      static {
28          // empty lines below
29  
30  
31      }
32  
33      {
34          // empty lines below
35  
36  
37      }
38  
39      private static void foo() {
40  
41  
42          // 1 empty line above
43  
44          // 1 empty line above
45  
46  
47  
48          // 2 empty lines above
49      }
50  }
51  class // violation ''CLASS_DEF' should be separated from previous line.'
52  SecondClassReturnWithVeryVeryVeryLongName3{}