That's true for the impl but you never know so I prefer to close all streams ;)

> Am 16.05.2014 um 10:09 schrieb Trustin Lee <notifications@github.com>:
> 
> In src/main/java/org/jboss/netty/handler/ssl/PemReader.java:
> 
> > +            for (;;) {
> > +                int ret = in.read(buf);
> > +                if (ret < 0) {
> > +                    break;
> > +                }
> > +                out.write(buf, 0, ret);
> > +            }
> > +        } finally {
> > +            try {
> > +                in.close();
> > +            } catch (IOException e) {
> > +                logger.warn("Failed to close a stream.", e);
> > +            }
> > +        }
> > +
> > +        return out.toString(CharsetUtil.US_ASCII.name());
> It's ByteArrayOutputStream - no need to close.
> 
> —
> Reply to this email directly or view it on GitHub.