Skip to content

Commit 193333a

Browse files
committed
Remove redundant boolean manipulations.
1 parent 910ca1a commit 193333a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

buildSrc/src/main/kotlin/io.github.nstdio.http.ext.test-conventions.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,7 @@ configurations.names
171171
.forEach {
172172
configure(listOf(it)) {
173173
attributes {
174-
@Suppress("UNCHECKED_CAST")
175-
val forName = Class.forName("java.lang.Boolean") as Class<Boolean>
176-
val value: Boolean = Boolean.valueOf("false") as Boolean
177-
178-
attribute(Attribute.of("javaModule", forName), value)
174+
attribute(Attribute.of("javaModule", Boolean::class.java), Boolean.valueOf("false") as Boolean)
179175
}
180176
}
181177
}

0 commit comments

Comments
 (0)