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

Refine StringUtils.lastIndexOfIgnoreCase

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.12.0
    • Component/s: 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

            • Assignee:
              Unassigned
              Reporter:
              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