• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-core / 24403205906

14 Apr 2026 01:59PM UTC coverage: 63.88% (+0.04%) from 63.836%
24403205906

push

github

ibacher
Fix compilation issue

0 of 2 new or added lines in 1 file covered. (0.0%)

193 existing lines in 14 files now uncovered.

22202 of 34756 relevant lines covered (63.88%)

0.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/api/src/main/java/org/openmrs/customdatatype/datatype/LocationDatatype.java
1
/**
2
 * This Source Code Form is subject to the terms of the Mozilla Public License,
3
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
 * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
5
 * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
 *
7
 * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
8
 * graphic logo is a trademark of OpenMRS Inc.
9
 */
10
package org.openmrs.customdatatype.datatype;
11

12
import org.apache.commons.lang3.StringUtils;
13
import org.openmrs.Location;
14
import org.openmrs.api.context.Context;
15
import org.springframework.stereotype.Component;
16

17
/**
18
 * This is a class for custom datatypes for locations
19
 *
20
 * @since 2.0.0
21
 */
22
@Component
23
public class LocationDatatype extends BaseMetadataDatatype<Location> {
1✔
24
        
25
        /**
26
         * @see org.openmrs.customdatatype.SerializingCustomDatatype#deserialize(String)
27
         */
28
        @Override
29
        public Location deserialize(String uuid) {
UNCOV
30
                if (StringUtils.isBlank(uuid)) {
×
31
                        return null;
×
32
                }
UNCOV
33
                return Context.getLocationService().getLocationByUuid(uuid);
×
34
        }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc