reverted check

This commit is contained in:
fkorotkov
2015-07-16 16:33:04 -04:00
parent c73f513016
commit 5258b4c0d3
@@ -114,7 +114,7 @@ object JavaCompilerSpec extends Specification {
case Some(content) => content.equalsIgnoreCase(p.position.lineContent()) case Some(content) => content.equalsIgnoreCase(p.position.lineContent())
case _ => true case _ => true
} }
def lineNumberCheck = p.position.line.exists(_ == lineno) def lineNumberCheck = p.position.line.isDefined && (p.position.line.get == lineno)
lineNumberCheck && lineContentCheck lineNumberCheck && lineContentCheck
} }