Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261303

ByteArrayOutputStream should document that flush() is NOOP

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      ByteArrayOutputStream currently inherits flush() and its documentation which makes it implicitly clear that flush() does nothing:
      > [...] The flush method of OutputStream does nothing.

      However, it would be good if ByteArrayOutputStream could adds its own documentation for this method stating this explicitly in a single sentence. Otherwise users might needlessly call that method.


            bpb Brian Burkhalter
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: