-
Notifications
You must be signed in to change notification settings - Fork 47
Refactor get-account-by-local-account-id FixesAB#3397557, Fixes AB#3397557 #2781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
88f6918
7309e5c
6728e2f
c28e18b
6e909fa
45d5e58
557a281
0a103f6
d04ff77
cd8ac32
94a5961
74847af
87d16ff
338f399
847e9d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -115,21 +115,24 @@ protected List<AccountRecord> getAccountsFilteredByInternal(@Nullable final Stri | |||||||||||||||||||||||||||||||||||||||||||||
| for (final AccountRecord account : allAccounts) { | ||||||||||||||||||||||||||||||||||||||||||||||
| boolean matches = true; | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| // once matches is false, it will never be true for this account | ||||||||||||||||||||||||||||||||||||||||||||||
| if (mustMatchOnHomeAccountId) { | ||||||||||||||||||||||||||||||||||||||||||||||
| matches = StringUtil.equalsIgnoreCaseTrimBoth(homeAccountId, account.getHomeAccountId()); | ||||||||||||||||||||||||||||||||||||||||||||||
| if(!matches) continue; | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| if (mustMatchOnEnvironment) { | ||||||||||||||||||||||||||||||||||||||||||||||
| matches = matches && StringUtil.equalsIgnoreCaseTrimBoth(environment, account.getEnvironment()); | ||||||||||||||||||||||||||||||||||||||||||||||
| if(!matches) continue; | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| if (mustMatchOnRealm) { | ||||||||||||||||||||||||||||||||||||||||||||||
| matches = matches && StringUtil.equalsIgnoreCaseTrimBoth(realm, account.getRealm()); | ||||||||||||||||||||||||||||||||||||||||||||||
| if(!matches) continue; | ||||||||||||||||||||||||||||||||||||||||||||||
siddhijain marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
siddhijain marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||||||
| if(!matches) continue; | |
| } | |
| if (mustMatchOnEnvironment) { | |
| matches = matches && StringUtil.equalsIgnoreCaseTrimBoth(environment, account.getEnvironment()); | |
| if(!matches) continue; | |
| } | |
| if (mustMatchOnRealm) { | |
| matches = matches && StringUtil.equalsIgnoreCaseTrimBoth(realm, account.getRealm()); | |
| if(!matches) continue; | |
| if (!matches) continue; | |
| } | |
| if (mustMatchOnEnvironment) { | |
| matches = matches && StringUtil.equalsIgnoreCaseTrimBoth(environment, account.getEnvironment()); | |
| if (!matches) continue; | |
| } | |
| if (mustMatchOnRealm) { | |
| matches = matches && StringUtil.equalsIgnoreCaseTrimBoth(realm, account.getRealm()); | |
| if (!matches) continue; |
Outdated
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent spacing issue: missing space after 'if' keyword throughout the file. Should be 'if (!matches) continue;' for all instances.
Outdated
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent spacing issue: missing space after 'if' keyword throughout the file. Should be 'if (!matches) continue;' for all instances.
Outdated
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent spacing issue: missing space after 'if' keyword throughout the file. Should be 'if (!matches) continue;' for all instances.
Outdated
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent spacing issue: missing space after 'if' keyword throughout the file. Should be 'if (!matches) continue;' for all instances.
Outdated
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent spacing issue: missing space after 'if' keyword throughout the file. Should be 'if (!matches) continue;' for all instances.
Outdated
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent spacing issue: missing space after 'if' keyword throughout the file. Should be 'if (!matches) continue;' for all instances.
siddhijain marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
Copilot
AI
Oct 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent spacing issue: missing space after 'if' keyword throughout the file. Should be 'if (!matches) continue;' for all instances.
Uh oh!
There was an error while loading. Please reload this page.