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

openmrs / openmrs-core / 27024944531

05 Jun 2026 03:47PM UTC coverage: 65.424% (+0.2%) from 65.186%
27024944531

push

github

ibacher
TRUNK-6392: Follow-up: remove JSpecify annotations

23745 of 36294 relevant lines covered (65.42%)

0.65 hits per line

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

0.0
/api/src/main/java/org/openmrs/api/ServiceNotFoundException.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.api;
11

12
public class ServiceNotFoundException extends APIException {
13
        
14
        private final Class serviceClass;
15
        
16
        public <T> ServiceNotFoundException(Class<T> serviceClass) {
17
                super("Service not found: " + serviceClass);
×
18
                this.serviceClass = serviceClass;
×
19
        }
×
20
        
21
        @SuppressWarnings("unchecked")
22
        public <T> Class<T> getServiceClass() {
23
                return serviceClass;
×
24
        }
25
}
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