Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5469

Replace String's substring operation with its simpler version

    Details

    • Type: Task
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.3.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Instead of:

      String s = "someString"
      s.substring(1, s.length())
      

      it is enough to call

      Instead call s.substring(1)
      

      as it will take a substring starting with at position 1 and will take the whole remaining part of the original string

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  michal Michal Fotyga
                  Reporter:
                  michal Michal Fotyga
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: