2023-10-16 16:34:38 +02:00
When the return value of a function call contains the operation status code, this value should be tested to make sure the operation completed successfully.
2021-09-16 17:42:50 +03:00
This rule raises an issue when the return values of the following are ignored:
* `java.io.File` operations that return a status code (except `mkdirs`)
* `Iterator.hasNext()`
* `Enumeration.hasMoreElements()`
* `Lock.tryLock()`
2023-10-30 10:33:56 +01:00
* non-void ``++Condition.await*++`` methods
2021-09-16 17:42:50 +03:00
* `CountDownLatch.await(long, TimeUnit)`
* `Semaphore.tryAcquire`
* `BlockingQueue`: `offer`, `remove`