View Javadoc
1   /*
2   CustomImportOrder
3   customImportOrderRules = STATIC###STANDARD_JAVA_PACKAGE###SPECIAL_IMPORTS###SAME_PACKAGE(3)
4   standardPackageRegExp = (default)^(java|javax)\.
5   thirdPartyPackageRegExp = (default).*
6   specialImportsRegExp = ^org\\..+
7   separateLineBetweenGroups = (default)true
8   sortImportsInGroupAlphabetically = (default)false
9   
10  
11  */
12  
13  package com.puppycrawl.tools.checkstyle.checks.imports.customimportorder;
14  
15  import static java.io.File
16      // some comments
17  
18      .createTempFile
19  
20      // some comments
21      ;
22  
23  // comment between import groups
24  import java.util.
25      Arrays
26      ;
27  
28  // comment within import group
29  
30  import java.util. // violation 'Extra separation in import group before .*'
31  
32      BitSet
33      ;
34  import java.util.
35  
36      // some comments
37      Collection
38      // some comments
39  
40      ;
41  import java.util.HashMap;
42  
43  
44  // comment within import group
45  import java.util.HashSet; // violation 'Extra separation in import group before .*'
46  
47  // comment between import groups
48  
49  import org.apache.tools.ant.*; // violation '.* should be separated from previous import group by one line'
50  import org.apache.commons.beanutils.*;
51  // comment between import groups
52  
53  
54  import com.puppycrawl.tools.checkstyle.*; // violation '.* should be separated from previous import group by one line'
55  
56  
57  // comment between import groups
58  import picocli.*; // violation '.* should be separated from previous import group by one line'
59  
60  // comment within import group
61  import picocli.CommandLine; // violation 'Extra separation in import group before .*'
62  
63  class InputCustomImportOrderSpanMultipleLines {}