reverted check

This commit is contained in:
fkorotkov 2015-07-16 16:33:04 -04:00
parent c73f513016
commit 5258b4c0d3
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ object JavaCompilerSpec extends Specification {
case Some(content) => content.equalsIgnoreCase(p.position.lineContent())
case _ => true
}
def lineNumberCheck = p.position.line.exists(_ == lineno)
def lineNumberCheck = p.position.line.isDefined && (p.position.line.get == lineno)
lineNumberCheck && lineContentCheck
}