Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1620

Refine StringUtils.lastIndexOfIgnoreCase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.12.0
    • None

    Description

      Avoid Multiple calls to calculate the length of the chain

       

      final int searchStrLength = searchStr.length(); 
      final int strLength = str.length();
      

      https://github.com/apache/commons-lang/pull/664

      Attachments

        Activity

          People

            Unassigned Unassigned
            arturobernalg Arturo Bernal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h