Skip to content

fix: convert freeze/thaw to block body for Kotlin 2.4#71

Merged
chrisuthe merged 1 commit intomainfrom
fix/kotlin-expression-body-warning
Mar 8, 2026
Merged

fix: convert freeze/thaw to block body for Kotlin 2.4#71
chrisuthe merged 1 commit intomainfrom
fix/kotlin-expression-body-warning

Conversation

@chrisuthe
Copy link
Copy Markdown
Owner

Summary

  • Converted freeze() and thaw() in SendspinTimeFilter.kt from expression body to block body syntax
  • Fixes compiler warning: "Return in function with expression body and without explicit return type" which will become an error in Kotlin 2.4
  • Synchronized semantics are preserved; only the function syntax changes

Test plan

  • Verify the project compiles without the expression body warning
  • Run existing unit tests for SendspinTimeFilter
  • Test freeze/thaw behavior during reconnection scenarios

Expression body functions with early return statements will become a
compiler error in Kotlin 2.4. Convert freeze() and thaw() from
expression body to block body syntax while preserving synchronized
semantics.
@chrisuthe chrisuthe merged commit 403604a into main Mar 8, 2026
@chrisuthe chrisuthe deleted the fix/kotlin-expression-body-warning branch March 8, 2026 02:49
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.

1 participant