Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5845 Search and fix minor errors and typos
  3. TRUNK-5854

Replacing Integer with int in the "for" loop in the UpdateFileParser class

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.4.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Case:
      The UpdateFileParser class has a "for" loop that operates on an Integer variable (for (Integer i = 0; i<nodes.getLength(); i++)). It's worth noting that nodes.getLength () returns the type int.

      Solution:
      Changing the type of the variable "i" from Integer to int.

      Link to loop:
      https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/module/UpdateFileParser.java#L106

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              sacull Lukasz Debicki
              Reporter:
              sacull Lukasz Debicki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: