Skip to content
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

[4.x] Fix bad merge #8053

Merged
merged 3 commits into from Oct 15, 2023
Merged

[4.x] Fix bad merge #8053

merged 3 commits into from Oct 15, 2023

Conversation

yschimke
Copy link
Collaborator

No description provided.

@yschimke
Copy link
Collaborator Author

@swankjesse test only, requesting post review.

@yschimke yschimke merged commit 9553f6d into square:okhttp_4x Oct 15, 2023
14 checks passed
@@ -119,4 +119,7 @@ class InMemoryFileSystem : FileSystem, TestRule {
}

override fun toString() = "InMemoryFileSystem"
fun allPaths(): MutableSet<File> {
Copy link
Member

Choose a reason for hiding this comment

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

MutableSet –> Set

@@ -119,4 +119,7 @@ class InMemoryFileSystem : FileSystem, TestRule {
}

override fun toString() = "InMemoryFileSystem"
fun allPaths(): MutableSet<File> {
return files.keys
Copy link
Member

Choose a reason for hiding this comment

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

files.keys is a live view; files.keys.toSet() is a necessary defensive copy, if that’s what we want

Copy link
Member

@swankjesse swankjesse left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

2 participants