18 lines
298 B
Plaintext
18 lines
298 B
Plaintext
== Why is this an issue?
|
|
|
|
include::../description.adoc[]
|
|
|
|
=== Noncompliant code example
|
|
|
|
[source,kotlin]
|
|
----
|
|
fun do() {
|
|
|
|
val stpe1 = ScheduledThreadPoolExecutor(0) // Noncompliant
|
|
|
|
val stpe2 = ScheduledThreadPoolExecutor(POOL_SIZE)
|
|
stpe2.corePoolSize = 0 // Noncompliant
|
|
|
|
...
|
|
----
|