File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow
testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ testing.suites {
181181 }
182182
183183 withType<JvmTestSuite >().configureEach {
184- useJUnitJupiter(libs.junit.bom.map { requireNotNull (it.version) })
184+ useJUnitJupiter(libs.junit.bom.map { checkNotNull (it.version) })
185185 dependencies {
186186 implementation(testKit.output)
187187 implementation(libs.assertk)
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class JavaPluginsTest : BasePluginTest() {
5454 fun makeAssembleDependOnShadowJarEvenIfAddedLater () {
5555 val kFunction = ShadowJar .Companion ::class .declaredFunctions
5656 .single { it.name == " registerShadowJarCommon" }
57- val jvmName = requireNotNull (kFunction.javaMethod).name
57+ val jvmName = checkNotNull (kFunction.javaMethod).name
5858
5959 projectScript.writeText(
6060 """
Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ class PublishingTest : BasePluginTest() {
715715
716716 fun MavenXpp3Reader.read (path : Path ): Model = path.inputStream().use { read(it) }
717717
718- fun <T : Any > JsonAdapter<T>.fromJson (path : Path ): T = requireNotNull (fromJson(path.readText()))
718+ fun <T : Any > JsonAdapter<T>.fromJson (path : Path ): T = checkNotNull (fromJson(path.readText()))
719719
720720 val Path .entries: List <String > get() = listDirectoryEntries().map { it.name }
721721 }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ fun ZipFile.getContent(entryName: String): String {
3838}
3939
4040fun ZipFile.getStream (entryName : String ): InputStream {
41- val entry = requireNotNull (getEntry(entryName)) { " Entry $entryName not found in all entries: ${entries().toList()} " }
41+ val entry = checkNotNull (getEntry(entryName)) { " Entry $entryName not found in all entries: ${entries().toList()} " }
4242 return getInputStream(entry)
4343}
4444
You can’t perform that action at this time.
0 commit comments