Skip to content

Commit bb42e0f

Browse files
committed
Apply Sonar suggestions
1 parent 6facb09 commit bb42e0f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cqf-fhir-cr-hapi/src/main/java/org/opencds/cqf/fhir/cr/hapi/common/HapiCreateChangelogProcessor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ public IBaseResource createChangelog(
8282
sourceBundle = (Bundle) packages.get(0).get();
8383
targetBundle = (Bundle) packages.get(1).get();
8484
service.shutdownNow();
85-
} catch (InterruptedException | ExecutionException e) {
86-
if (e instanceof InterruptedException) {
87-
Thread.currentThread().interrupt();
88-
}
85+
} catch (InterruptedException e) {
86+
Thread.currentThread().interrupt();
87+
throw new UnprocessableEntityException(e.getMessage());
88+
} catch (ExecutionException e) {
8989
throw new UnprocessableEntityException(e.getMessage());
9090
} finally {
9191
service.shutdown();

cqf-fhir-cr-hapi/src/test/java/org/opencds/cqf/fhir/cr/hapi/common/HapiCreateChangelogProcessorTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
class HapiCreateChangelogProcessorTest {
2424

2525
public HapiCreateChangelogProcessor createChangelogProcessor;
26-
public InMemoryFhirRepository repository;
2726

2827
@Test
2928
void create_changelog_pages() {

0 commit comments

Comments
 (0)