improve java dependency test coverage

This commit is contained in:
Alan Hamlett 2017-11-23 09:48:14 -08:00
parent 40c8a53019
commit cb2ca39832
3 changed files with 7 additions and 2 deletions

View file

@ -43,7 +43,7 @@ class JavaParser(TokenParser):
self._process_other(token, content)
def _process_namespace(self, token, content):
if u(content) == u('import'):
if u(content).split() and u(content).split()[0] == u('import'):
self.state = 'import'
elif self.state == 'import':