From f6eec2650fa647e08394c148f5bb6add686ee23e Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Fri, 10 Aug 2018 09:59:47 +0200 Subject: [PATCH] Document an idea for an RxJava check --- error-prone-contrib/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/error-prone-contrib/README.md b/error-prone-contrib/README.md index b7e70ddb..e9af57d7 100644 --- a/error-prone-contrib/README.md +++ b/error-prone-contrib/README.md @@ -204,6 +204,9 @@ The following is a list of checks we'd like to see implemented: - An RxJava-specific check which flags `expr.firstOrError()` calls and suggests `expr.switchIfEmpty(Single.error(...))`, so that an application-specific exception is thrown instead of `NoSuchElementException`. +- An RxJava-specific check which flags use of `#assertValueSet` without + `#assertValueCount`, as the former method doesn't do what one may intuitivily + expect it to do. See ReactiveX/RxJava#6151. [autorefactor]: https://autorefactor.org [bettercodehub]: https://bettercodehub.com