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

Findbugs: avoid new String(String)

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.6, 7.0
    • None
    • None
    • New, Patch Available

    Description

      http://findbugs.sourceforge.net/bugDescriptions.html#DM_STRING_CTOR
      Removing the extra constructor calls will avoid heap allocations while behaving just the same as the original code.

      Attachments

        1. LUCENE-7743.patch
          8 kB
          Daniel Jelinski

        Issue Links

          Activity

            People

              Unassigned Unassigned
              djelinski Daniel Jelinski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: