rspec/rules/S2122/kotlin/rule.adoc

18 lines
298 B
Plaintext
Raw Normal View History

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
2022-02-04 17:28:24 +01:00
[source,kotlin]
----
fun do() {
val stpe1 = ScheduledThreadPoolExecutor(0) // Noncompliant
val stpe2 = ScheduledThreadPoolExecutor(POOL_SIZE)
stpe2.corePoolSize = 0 // Noncompliant
...
----