Added test and fix for the case if there is a semicolon between import statements.
This commit is contained in:
parent
615c6f26cd
commit
a4e79cf45c
|
|
@ -215,6 +215,7 @@ packageDefinition
|
|||
importDefinition
|
||||
options {defaultErrorHandler = true;}
|
||||
: i:"import"^ {#i.setType(IMPORT);} ( "static" {#i.setType(STATIC_IMPORT);} )? identifierStar SEMI
|
||||
| SEMI
|
||||
;
|
||||
|
||||
// A type definition in a file is either a class, interface, enum of annotation definition
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
package com.puppycrawl.tools.checkstyle.grammars;
|
||||
|
||||
import java.util.Arrays;
|
||||
;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class SemicolonBetweenImports
|
||||
{
|
||||
}
|
||||
Loading…
Reference in New Issue