3 ms·
Java 8 Optional is useful (although the API could be better). If only FindBugs would warn about calling get() without checking isPresent() first. There's an op
by rickette 11y ago
Java 8 Optional is useful (although the API could be better).
If only FindBugs would warn about calling get() without checking isPresent() first. There's an open FindBugs ticket for this: http://sourceforge.net/p/findbugs/feature-requests/302/ http://sourceforge.net/p/findbugs/feature-requests/302/
- bkv 11y agoThat is the old bug tracker. An issue was submitted on the official tracker and immediately closed. See https://github.com/findbugsproject/findbugs/issues/56 https://github.com/findbugsproject/findbugs/issues/56 for explanation.
- deleted 11y ago[deleted]