Fix bug with needing whitespace around '*' using in import blah.*;
This commit is contained in:
parent
068f85a72b
commit
b787d5ed90
|
|
@ -94,6 +94,13 @@ public class WhitespaceAroundCheck
|
|||
return;
|
||||
}
|
||||
|
||||
// Check for import pkg.name.*;
|
||||
if ((aAST.getType() == TokenTypes.STAR)
|
||||
&& (aAST.getParent().getType() == TokenTypes.DOT))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final String[] lines = getLines();
|
||||
final String line = lines[aAST.getLineNo() - 1];
|
||||
final int before = aAST.getColumnNo() - 1;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
// Ignore error
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle;
|
||||
|
||||
import java.io.*;
|
||||
/**
|
||||
* Contains simple mistakes:
|
||||
* - Long lines
|
||||
|
|
|
|||
Loading…
Reference in New Issue