Skip to content

Use filterInPlace instead of retain#495

Merged
eed3si9n merged 1 commit intosbt:developfrom
xuwei-k:filterInPlace-retain
Mar 2, 2026
Merged

Use filterInPlace instead of retain#495
eed3si9n merged 1 commit intosbt:developfrom
xuwei-k:filterInPlace-retain

Conversation

@xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Mar 1, 2026

[warn] -- Deprecation Warning: /home/runner/work/io/io/io/src/main/scala/sbt/internal/nio/FileEventMonitor.scala:307:27 
[warn] 307 |      antiEntropyDeadlines.retain((_, deadline) => Deadline.now < deadline + retentionPeriod)
[warn]     |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[warn]     |method retain in trait MapOps is deprecated since 2.13.0: Use filterInPlace instead

https://github.com/scala/scala3/blob/b5d15acdc4c6749a86eb32eb211e0ae08e7c20ce/library/src/scala/collection/mutable/Map.scala#L169-L170

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks!

@eed3si9n eed3si9n merged commit 1fbfdc8 into sbt:develop Mar 2, 2026
14 of 16 checks passed
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.

2 participants