Skip to content

Commit

Permalink
Apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek committed Feb 11, 2025
1 parent 3d290c8 commit 7d00b1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions hapi-fhir-base/src/main/java/ca/uhn/fhir/util/FhirTerser.java
Original file line number Diff line number Diff line change
Expand Up @@ -1435,8 +1435,7 @@ private boolean isInternalFragment(IBaseReference theReference) {
return true;
}
if (theReference.getResource().getIdElement().isAbsolute()
|| theReference.getResource().getIdElement().getValueAsString().startsWith("urn:")
) {
|| theReference.getResource().getIdElement().getValueAsString().startsWith("urn:")) {
return false;
}
return true;
Expand Down Expand Up @@ -1822,13 +1821,13 @@ public IIdType addContained(IBaseResource theResource) {
UUID randomUUID = UUID.randomUUID();
theResource.getIdElement().setValue(randomUUID.toString());
newId.setValue("#" + randomUUID);
//TODO put newId in resourceToIdMap ?
// TODO put newId in resourceToIdMap ?
getResourceToIdMap().put(theResource, newId);
} else {
//TODO put new IdDt with # in resourceToIdMap ?
// TODO put new IdDt with # in resourceToIdMap ?
getResourceToIdMap().put(theResource, new IdDt("#" + newId.getIdPart()));
}
//getResourceToIdMap().put(theResource, newId);
// getResourceToIdMap().put(theResource, newId);
getOrCreateResourceList().add(theResource);
return theResource.getIdElement();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ private void extractSearchIndexParametersForTargetResources(

private IBaseResource findContainedResource(Collection<IBaseResource> resources, IBaseReference reference) {
for (IBaseResource resource : resources) {
if (("#" + resource.getIdElement()).equals(reference.getReferenceElement().toString())) return resource;
if (("#" + resource.getIdElement())
.equals(reference.getReferenceElement().toString())) return resource;
}
return null;
}
Expand Down

0 comments on commit 7d00b1c

Please sign in to comment.