From cc2b7452be28663c47854aec8727c0768dfdaebd Mon Sep 17 00:00:00 2001 From: James Agnew Date: Tue, 21 Apr 2020 20:36:19 -0400 Subject: [PATCH] Update hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/index/IdHelperService.java Co-Authored-By: Ken Stevens --- .../main/java/ca/uhn/fhir/jpa/dao/index/IdHelperService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/index/IdHelperService.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/index/IdHelperService.java index d53cfbc2a6b..dbe21ecc154 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/index/IdHelperService.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/index/IdHelperService.java @@ -282,7 +282,7 @@ public class IdHelperService { } } - if (pid.isPresent() == false) { + if (pid.isEmpty()) { throw new ResourceNotFoundException(new IdDt(theResourceType, theId)); } return pid.get();