-
Example code:
```
final ImmutableMap myMap = ImmutableMap.of('foo', 3);
final long value = myMap.getOrDefault('bar', 0);
```
I am getting `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` in this ca…
-
Thanks for the awesome project.
But I found SpotBugs couldn't detect NPE in method return value like below:
```java
public class Person {
String name;
public Person(){
}
pub…
-
## Required Actions
- Update `pom.xml` file in line with [COMP0010 coding standards](https://moodle.ucl.ac.uk/pluginfile.php/8492254/mod_resource/content/3/coding_standard.html).
- Specifically, you…
-
`/**
* Working with request parameters. If we detect
* simple regex characters, we treat it as a regex.
* Otherwise we treat it as a single parameter.
*/
target = var…
-
I propose that all the organizations listed at https://jspecify.dev/ should be voting members. That page implies approval and participation. If an organization isn't accorded a vote, then I propose …
-
The helper builder drops the default value if the default value type does not match, eg if 0 is a default value of field type float then the following code will silently drop the default
public…
-
### Discussed in https://github.com/spotbugs/sonar-findbugs/discussions/708
Originally posted by **praveenkumarp893** January 30, 2023
Hi,
I am using findbugs sonar plugin version 4.2.2 in …
-
[Qulice](https://www.qulice.com/) can restrict what kind of code is allowed by breaking the build if the code does not comply.
- [x] Add Qulice to pom file
- [x] Resolve PMD violations
- [x] Res…
-
## Environment
| Component | Version |
| ------------------ | ------- |
| Java | 17 via Eclipse JRE |
| SpotBugs | 4.7.1 |
| FindSecBugs | 1.12.0 |
…
-
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…