On Sun, Jan 17, 2021 at 3:41 PM Hervé BOUTEMY <herve.bout...@free.fr> wrote:
>
> there is a checkError() method we should probably check before closing, that
> seems a good idea
>

Remembering (and forgetting) to call an error checking method at the
right time is the unreliable anti-pattern IOException was created to
avoid. It's easier to simply avoid PrintWriter. It's not hard to add a
"\n" to method calls, and it also produces platform independent
output, unlike println().

-- 
Elliotte Rusty Harold
elh...@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to