@@ -40,23 +40,19 @@ private void populateIdentitiesForType(IdentityMapV3Input identityMapInput, Stri
4040 }
4141 }
4242
43- private static IdentityMapV3Input getIdentityMapInput (IdentityMapV3Input identityMapInput ) {
44- return identityMapInput ;
45- }
46-
4743 public boolean isSuccess () {
4844 return "success" .equals (status );
4945 }
5046
51- static public class ApiResponse {
47+ public static class ApiResponse {
5248 @ SerializedName ("status" )
5349 public String status ;
5450
5551 @ SerializedName ("body" )
5652 public Map <String , List <ApiIdentity >> body ;
5753 }
5854
59- static public class ApiIdentity {
55+ public static class ApiIdentity {
6056 @ SerializedName ("u" )
6157 public String currentUid ;
6258
@@ -70,7 +66,7 @@ static public class ApiIdentity {
7066 public String error ;
7167 }
7268
73- static public class MappedIdentity {
69+ public static class MappedIdentity {
7470 public MappedIdentity (String currentUid , String previousUid , Instant refreshFrom ) {
7571 this .currentUid = currentUid ;
7672 this .previousUid = previousUid ;
@@ -98,7 +94,7 @@ public Instant getRefreshFrom() {
9894 }
9995 }
10096
101- static public class UnmappedIdentity {
97+ public static class UnmappedIdentity {
10298 public UnmappedIdentity (String reason )
10399 {
104100 this .reason = UnmappedIdentityReason .fromString (reason );
@@ -119,11 +115,11 @@ public String getRawReason() {
119115 }
120116
121117 public HashMap <String , MappedIdentity > getMappedIdentities () {
122- return mappedIdentities ;
118+ return new HashMap <>( mappedIdentities ) ;
123119 }
124120
125121 public HashMap <String , UnmappedIdentity > getUnmappedIdentities () {
126- return unmappedIdentities ;
122+ return new HashMap <>( unmappedIdentities ) ;
127123 }
128124
129125 private final String status ;
0 commit comments