Skip to content

Commit

Permalink
issue #3265 - checkType throws instead of logging for abstract types
Browse files Browse the repository at this point in the history
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
  • Loading branch information
lmsurpre committed Feb 2, 2022
1 parent 0b11970 commit 45c3904
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,8 @@ protected void checkInitComplete() throws FHIROperationException {
* we'll throw an error to short-circuit the current in-progress REST API invocation.
*/
protected void checkType(String type) throws FHIROperationException {
if (!ModelSupport.isResourceType(type)) {
throw buildUnsupportedResourceTypeException(type);
}
if (!ModelSupport.isConcreteResourceType(type)) {
log.warning("Use of abstract resource types like '" + type + "' in FHIR URLs is deprecated and will be removed in a future release");
throw buildUnsupportedResourceTypeException(type);
}
}

Expand Down

0 comments on commit 45c3904

Please sign in to comment.