Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-375 Improve code quality metrics
  3. TIKA-837

Make inner classes static for performance reasons

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • general
    • None

    Description

      Sonar lists these as major violations, because static classes perform generally better. This is because the JVM needs only to create one class definition.

      There are a few others, but those could even benefit from a larger refactoring than just making them static inner classes

      Attachments

        1. static_classes_patch.diff
          16 kB
          Fabian Lange

        Activity

          People

            Unassigned Unassigned
            fabianlange Fabian Lange
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: