google / google/error-prone

[2.3.3] RxReturnValueIgnored false-positive

Open
#1,230 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

```java
ConcurrentMap> map = new ConcurrentHashMap<>();
map.remove("foobar");
```

The second line will give a `RxReturnValueIgnored` warning (because `remove` returns a `Single`) which is wrong.

P.S. The same applies for `put`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.