Sonar metrics for OpenMRS Core Master

Build: #545 failed Scheduled with changes by sintjuri <sintjuri@yandex.ru> and Wyclif Luyima

Code commits

Git

  • Wyclif Luyima

    Wyclif Luyima 7883a03fcd586be2aae553c038d51ab3a4595e47

    Follow up to fix failing tests when back ported to 1.11.x and 1.10.x - TRUNK-4701

    • api/src/main/java/org/openmrs/api/impl/OrderServiceImpl.java (version 7883a03fcd586be2aae553c038d51ab3a4595e47)
    • api/src/test/java/org/openmrs/api/OrderServiceTest.java (version 7883a03fcd586be2aae553c038d51ab3a4595e47)
    • api/src/test/resources/org/openmrs/api/include/OrderServiceTest-ambiguousDrugOrders.xml (version 7883a03fcd586be2aae553c038d51ab3a4595e47)
  • sintjuri <sintjuri@yandex.ru>

    sintjuri <sintjuri@yandex.ru> b12e7271f891084daa39378d0e5d794822786b4b

    TRUNK-4701 throw an AmbiguousOrderException while trying to discontinue of order
    remove constructor without params from AmbiguousOrderException

    TRUNK-4701 add break to the loop

    throw AmbiguousOrderException when try to discontinue drug order, and
    there are more than one drug orders with the same drug

    formating changes

    Remove redundant if

    • api/src/main/java/org/openmrs/api/AmbiguousOrderException.java (version b12e7271f891084daa39378d0e5d794822786b4b)
    • api/src/main/java/org/openmrs/api/OrderService.java (version b12e7271f891084daa39378d0e5d794822786b4b)
    • api/src/main/java/org/openmrs/api/impl/OrderServiceImpl.java (version b12e7271f891084daa39378d0e5d794822786b4b)
    • api/src/test/java/org/openmrs/api/OrderServiceTest.java (version b12e7271f891084daa39378d0e5d794822786b4b)
    • api/src/test/resources/org/openmrs/api/include/OrderServiceTest-discontinueAmbiguousOrderByConcept.xml (version b12e7271f891084daa39378d0e5d794822786b4b)