Skip to content

Repro for S2583 FP: Custom indexer and removal method#9592

Merged
mary-georgiou-sonarsource merged 1 commit intomasterfrom
Zsolt/S2583-FP-indexer-repro
Aug 5, 2024
Merged

Repro for S2583 FP: Custom indexer and removal method#9592
mary-georgiou-sonarsource merged 1 commit intomasterfrom
Zsolt/S2583-FP-indexer-repro

Conversation

@zsolt-kolbay-sonarsource
Copy link
Copy Markdown
Contributor

Reproduces #9580

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 2, 2024

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Aug 2, 2024

Copy link
Copy Markdown
Contributor

@Tim-Pohlmann Tim-Pohlmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}
}

public void IndexerReturnsNullInsteadOfThrowingException(PersonCollection collection)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good example. It could be much simpler if Refresh() would just clear out the collection no matter what. On the other hand, this is more of a real-world example, which is also nice.

@mary-georgiou-sonarsource mary-georgiou-sonarsource merged commit b0e8a3f into master Aug 5, 2024
@mary-georgiou-sonarsource mary-georgiou-sonarsource deleted the Zsolt/S2583-FP-indexer-repro branch August 5, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants