From 8bd66c943451ec94ea7a00985d9c669414bc815e Mon Sep 17 00:00:00 2001 From: Reham Muzzamil Date: Fri, 10 Nov 2023 13:29:46 +0500 Subject: [PATCH] Fix spotless issues --- .../PractitionerDetailsEndpointHelper.java | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/plugins/src/main/java/org/smartregister/fhir/gateway/plugins/PractitionerDetailsEndpointHelper.java b/plugins/src/main/java/org/smartregister/fhir/gateway/plugins/PractitionerDetailsEndpointHelper.java index 9bf768d..c4e26fc 100755 --- a/plugins/src/main/java/org/smartregister/fhir/gateway/plugins/PractitionerDetailsEndpointHelper.java +++ b/plugins/src/main/java/org/smartregister/fhir/gateway/plugins/PractitionerDetailsEndpointHelper.java @@ -485,31 +485,40 @@ private List getManagingOrganizationsOfCareTeamIds(List careTe } private List 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 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 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 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 getLocationsHierarchy(List locationsIdentifiers) {