Fix bug with needing whitespace around '*' using in import blah.*;

This commit is contained in:
Oliver Burn 2002-11-22 14:14:37 +00:00
parent 068f85a72b
commit b787d5ed90
2 changed files with 8 additions and 1 deletions

View File

@ -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;

View File

@ -4,7 +4,7 @@
// Ignore error
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle;
import java.io.*;
/**
* Contains simple mistakes:
* - Long lines