Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2733

Add private ctors to static utility classes

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • None
    • None
    • New

    Description

      During development in 3.x and trunk we added some new classes like IOUtils and CodecUtils that are only providing static methods, but have no ctor at all. This adds the default empty public ctor, which is wrong, the classes should never be instantiated.

      We should add private dummy ctors to prevent creating instances.

      Attachments

        1. LUCENE-2733.patch
          5 kB
          Uwe Schindler

        Activity

          People

            Unassigned Unassigned
            uschindler Uwe Schindler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: