OutputStream out = new BarOutputStream();
in.transferTo(out);
if (out != null) ...
Can someone explain how `out` could possibly be null here? OutputStream out = new BarOutputStream();
in.transferTo(out);
if (out != null) ...
Can someone explain how `out` could possibly be null here?If the `in` stream init throws, the entire try-block isn't run at all. If `out` stream init throws, the following try/finally block isn't run either.
Lombok's docs get this wrong too. Unless I'm going crazy.