review comments

This commit is contained in:
fkorotkov 2015-07-16 15:49:06 -04:00
parent a6f83dda97
commit c73f513016
3 changed files with 3 additions and 3 deletions

View File

@ -84,8 +84,7 @@ final class DiagnosticsReporter(reporter: Reporter) extends DiagnosticListener[J
case _ => None
}
} catch {
case ignored: NoSuchMethodException => None
case ignored: NoSuchFieldException => None
case ignored: ReflectiveOperationException => None
}
def getExpression: String =

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.isDefined && (p.position.line.get == lineno)
def lineNumberCheck = p.position.line.exists(_ == lineno)
lineNumberCheck && lineContentCheck
}

View File

@ -1,5 +1,6 @@
[@fkorotkov]: http://github.com/fkorotkov
[#2108]: https://github.com/sbt/sbt/pull/2108
### Fixes with compatibility implications