Skip to content

Commit feabcde

Browse files
authored
Issue-679: Fix for Account Cache; .contains() was not possible and you had to iterate through all elements as workaround. (#681)
1 parent efee88f commit feabcde

File tree

1 file changed

+2
-0
lines changed
  • msal4j-sdk/src/main/java/com/microsoft/aad/msal4j

1 file changed

+2
-0
lines changed

msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/Account.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package com.microsoft.aad.msal4j;
55

66
import lombok.AllArgsConstructor;
7+
import lombok.EqualsAndHashCode;
78
import lombok.Getter;
89
import lombok.Setter;
910
import lombok.experimental.Accessors;
@@ -17,6 +18,7 @@
1718
@Accessors(fluent = true)
1819
@Getter
1920
@Setter
21+
@EqualsAndHashCode(of = {"homeAccountId"})
2022
@AllArgsConstructor
2123
class Account implements IAccount {
2224

0 commit comments

Comments
 (0)