-
The java.util.Collection.contains() method documents NPE (and CCE) as being legally thrown. Hence defensive code inquiring about presence needs to look like this:
```
List list; // known to be n…
-
The help at https://spotbugs.readthedocs.io/en/stable/running.html#common-command-line-options and the code in `TextUICommandLine` know of an option `-reanalyze` which was introduced with commit 67588…
-
Right now Eclipse plugin is a part of the main repo and is released together with SpotBugs core.
Issues like #478 are Eclipse specific, and it makes not much sense to wait for the core release to rel…
-
-
### Describe the bug
``` java
String sourceCode = getOriginalSourceCode();
if (sourceCode.isEmpty()) {
return;
}
```
If `sourceCode` is null, an NPE is thrown.
I'd recommend run…
-
[bamboo...sonar.txt](https://github.com/spotbugs/sonar-findbugs/files/14249731/bamboo.sonar.txt)
## Issue Description
## Environment
| Component | Version |
| --------…
-
#### Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
```
IntelliJ IDEA 2024.2.3 (Ultimate Edition)
Build #IU-242.23339.11, built on September 25, 2024
Licensed to Martin Kedmenec
Su…
-
It would be useful to have the `@CheckReturnValue` annotation automatically be added to the AutoValue generated getters and builder methods. Calling these without using their return value (i.e. writin…
-
**Affects PMD Version:**
6.20.0
**Rule:**
New rule.
**Description**
SonarSource has an existing rule for Java that verifies argument types and their count for formatted string specifiers les…
-
False positive.
This yields no errors:
```
import org.junit.jupiter.api.Assertions;
@Test
public void testToCamelCase4() {
Assertions.assertThrows(NullPointerException.class, () -> {
…