Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-616

Use ModuleUtil.isOpenmrsVersionInVersions()

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Needs Assessment
    • Priority: TBD
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Make use of ModuleUtil.isOpenmrsVersionInVersions() (will be in openmrs 2.1.0 release)

      which can replace occurrences of

      		boolean result = false;
      		for (String version : versions) {
      			if (ModuleUtil.matchRequiredVersions(OpenmrsConstants.OPENMRS_VERSION_SHORT, version)) {
      				result = true;
      				break;
      			}
      		}
      

      which can be found multiple times in the code base.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              teleivo Ivo Ulrich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: