- Language: Java
- Rule: java:S7467
- Why is it false-positive:
- The variable
eis reported as unused and recommended to be replaced with_ - However two lines below in the same code block the variable is used
- The variable
- Product: SonarQube Server, Data Center Edition, v2026.3.1 (123439)
Java code:
executor.run(
slow,
() -> {
try {
neverReleased.await();
} catch (final InterruptedException e) {
// HERE IS THE FALSE-POSITIVE: Replace "e" with an unnamed pattern.
interrupted.countDown();
throw e;
}
return UnitOutcome.ok();
});
