Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-143

Add Singleton Constants to several stream classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4
    • Streams/Writers
    • None
    • jvm compliant os

    Description

      I have added singleton constants in following four classes which should have been singleton.

      ClosedInputStream
      ClosedOutputStream
      NullOutputStream
      NullWriter

      We may also make it a singleton by keeping constructor private, if required.

      Please comment/commit.

      Attachments

        1. singleton.patch
          3 kB
          Nikunj Trivedi
        2. null_writer.patch
          0.6 kB
          Nikunj Trivedi
        3. null_output_stream.patch
          0.6 kB
          Nikunj Trivedi
        4. closed_output_stream.patch
          0.7 kB
          Nikunj Trivedi
        5. closed_input_stream.patch
          0.6 kB
          Nikunj Trivedi

        Activity

          People

            niallp Niall Pemberton
            nikunj_trivedi Nikunj Trivedi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: