[2.x] refactor: Remove unnecessary unchecked annotation (#8926)

This commit is contained in:
kenji yoshida 2026-03-20 09:11:01 +09:00 committed by GitHub
parent 0608a660da
commit b8ab0031f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ private[sbt] abstract class AbstractBackgroundJobService extends BackgroundJobSe
override def shutdown(): Unit = {
val deadline = 10.seconds.fromNow
while (jobSet.nonEmpty && !deadline.isOverdue) {
jobSet.headOption.foreach { case handle: ThreadJobHandle @unchecked =>
jobSet.headOption.foreach { handle =>
if (handle.job.isRunning()) {
handle.job.shutdown()
handle.job.awaitTerminationTry(10.seconds)