Make warnings in Java code fatal (#28402)
This commit is contained in:
parent
58fa1e3604
commit
327e16980d
51 changed files with 480 additions and 213 deletions
|
|
@ -51,14 +51,14 @@ object TestExtras {
|
|||
},
|
||||
|
||||
checkTestsHaveRun := {
|
||||
require(
|
||||
file("akka-stream-tests/target/test-reports/TEST-akka.stream.scaladsl.FlowPublisherSinkSpec.xml").exists,
|
||||
"The jdk9-only FlowPublisherSinkSpec.scala should be run as part of the build"
|
||||
)
|
||||
require(
|
||||
file("akka-stream-tests/target/test-reports/TEST-akka.stream.javadsl.JavaFlowSupportCompileTest.xml").exists,
|
||||
"The jdk9-only JavaFlowSupportCompileTest.java should be run as part of the build"
|
||||
)
|
||||
def shouldExist(description: String, filename: String): Unit =
|
||||
require(file(filename).exists, s"$description should be run as part of the build")
|
||||
|
||||
List(
|
||||
"The java JavaExtension.java" -> "akka-actor-tests/target/test-reports/akka.actor.JavaExtension.xml",
|
||||
"The jdk9-only FlowPublisherSinkSpec.scala" -> "akka-stream-tests/target/test-reports/TEST-akka.stream.scaladsl.FlowPublisherSinkSpec.xml",
|
||||
"The jdk9-only JavaFlowSupportCompileTest.java" -> "akka-stream-tests/target/test-reports/TEST-akka.stream.javadsl.JavaFlowSupportCompileTest.xml",
|
||||
).foreach((shouldExist _).tupled)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue