Skip to content

Commit

Permalink
Fix spotless issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rehammuzzamil committed Nov 10, 2023
1 parent 2347eab commit 8bd66c9
Showing 1 changed file with 23 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,31 +485,40 @@ private List<String> getManagingOrganizationsOfCareTeamIds(List<CareTeam> careTe
}

private List<CareTeam> mapBundleToCareTeams(Bundle careTeams) {
return careTeams != null ? careTeams.getEntry().stream()
.map(bundleEntryComponent -> (CareTeam) bundleEntryComponent.getResource())
.collect(Collectors.toList()) : Collections.emptyList();
return careTeams != null
? careTeams.getEntry().stream()
.map(bundleEntryComponent -> (CareTeam) bundleEntryComponent.getResource())
.collect(Collectors.toList())
: Collections.emptyList();
}

private List<PractitionerRole> mapBundleToPractitionerRolesWithOrganization(
Bundle practitionerRoles) {
return practitionerRoles != null ? practitionerRoles.getEntry().stream()
.map(it -> (PractitionerRole) it.getResource())
.collect(Collectors.toList()) : Collections.emptyList();
return practitionerRoles != null
? practitionerRoles.getEntry().stream()
.map(it -> (PractitionerRole) it.getResource())
.collect(Collectors.toList())
: Collections.emptyList();
}

private List<Group> mapBundleToGroups(Bundle groupsBundle) {
return groupsBundle != null ? groupsBundle.getEntry().stream()
.map(bundleEntryComponent -> (Group) bundleEntryComponent.getResource())
.collect(Collectors.toList()) : Collections.emptyList();
return groupsBundle != null
? groupsBundle.getEntry().stream()
.map(bundleEntryComponent -> (Group) bundleEntryComponent.getResource())
.collect(Collectors.toList())
: Collections.emptyList();
}

private List<OrganizationAffiliation> mapBundleToOrganizationAffiliation(
Bundle organizationAffiliationBundle) {
return organizationAffiliationBundle != null ? organizationAffiliationBundle.getEntry().stream()
.map(
bundleEntryComponent ->
(OrganizationAffiliation) bundleEntryComponent.getResource())
.collect(Collectors.toList()) : Collections.emptyList();
return organizationAffiliationBundle != null
? organizationAffiliationBundle.getEntry().stream()
.map(
bundleEntryComponent ->
(OrganizationAffiliation)
bundleEntryComponent.getResource())
.collect(Collectors.toList())
: Collections.emptyList();
}

private List<LocationHierarchy> getLocationsHierarchy(List<String> locationsIdentifiers) {
Expand Down

0 comments on commit 8bd66c9

Please sign in to comment.