-
Notifications
You must be signed in to change notification settings - Fork 207
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
Fix namespace collision for string and CollectionUtils method IsNullOrEmpty
#2471
Fix namespace collision for string and CollectionUtils method IsNullOrEmpty
#2471
Conversation
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.
Thanks for fixing this one, I will follow up with another PR that fixes any additional usages.
Actually, after searching the codebase there was only 1 more instance where string was being null checked wrong, so just added it in here, hope that's OK @abhishekkumams |
/azp run |
/azp run |
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.
Need to remove unnecessary CollectionUtils class
It's still being used for the reason pointed out by Sean: #2471 (comment) |
/azp run |
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.
lgtm
…OrEmpty` (#2471) ## Why make this change? - Closes #2469 - There is a namespace collision for the `IsNullOrEmpty` method in the `MsSqlQueryBuilder` class between String and CollectionUtils class. ## What is this change? - `MsSqlQueryBuilder` class had a check in the `Build` method where it was using `IsNullOrEmpty` for Strings but it was refrencing CollectionUtils Class instead - Removed `Collection.Utilities` class from Cli and renamed it in the Core project to `EnumerableUtilities` to avoid any future namespace collision. - Also updated all the references of `IsNullOrEmpty` ## How was this tested? - [x] manual tests - [x] current existing tests Notes: Work Around shared here: AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#1722 --------- Co-authored-by: Aaron Burtle <[email protected]> Co-authored-by: aaronburtle <[email protected]>
Why make this change?
IsNullOrEmpty
method in theMsSqlQueryBuilder
class between String and CollectionUtils class.What is this change?
MsSqlQueryBuilder
class had a check in theBuild
method where it was usingIsNullOrEmpty
for Strings but it was refrencing CollectionUtils Class insteadCollection.Utilities
class from Cli and renamed it in the Core project toEnumerableUtilities
to avoid any future namespace collision.IsNullOrEmpty
How was this tested?
Notes:
Work Around shared here: AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#1722