3 ms·
How are they making it worse? In any case, there already exist solutions in place: https://checkerframework.org/manual/#example-use https://checkerframework.o
by apta 6y ago
How are they making it worse?
In any case, there already exist solutions in place:
https://checkerframework.org/manual/#example-use https://checkerframework.org/manual/#example-use
https://github.com/uber/NullAway https://github.com/uber/NullAway
- richardwhiuk 6y agoThe code ends up looking like: Optional<Integer> foo; //.... if (foo != null) { foo.and_then(new Consumer () { function accept(Integer foo) { } }); }
- karmakaze 6y agoI would never assign null to an Optional nor use a library that returned one. To ensure assignment before use make it final.