-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[4.x] Fix bad merge #8053
Conversation
@swankjesse test only, requesting post review. |
@@ -119,4 +119,7 @@ class InMemoryFileSystem : FileSystem, TestRule { | |||
} | |||
|
|||
override fun toString() = "InMemoryFileSystem" | |||
fun allPaths(): MutableSet<File> { |
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.
MutableSet –> Set
@@ -119,4 +119,7 @@ class InMemoryFileSystem : FileSystem, TestRule { | |||
} | |||
|
|||
override fun toString() = "InMemoryFileSystem" | |||
fun allPaths(): MutableSet<File> { | |||
return files.keys |
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.
files.keys is a live view; files.keys.toSet()
is a necessary defensive copy, if that’s what we want
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
No description provided.