mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
12 lines
379 B
Java
12 lines
379 B
Java
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
|
|
|
public class Test {
|
|
void f() {
|
|
int i = 0;
|
|
ScheduledThreadPoolExecutor s = new ScheduledThreadPoolExecutor(1); // Compliant
|
|
ScheduledThreadPoolExecutor s1 = new ScheduledThreadPoolExecutor(0); // $ Alert
|
|
s.setCorePoolSize(0); // $ Alert
|
|
s.setCorePoolSize(i); // $ Alert
|
|
}
|
|
}
|