Repository navigation
Conversation
Rewrite ResendController (and its nested ResendWorker) from Java to Kotlin as the first step toward porting the files touched by the History resend log work one at a time. The singleton follows the ListenPortManager port (DeNA#269): a private constructor with a double-checked @volatile instance and @JvmStatic getInstance(). The public API is kept so Java callers continue to work unchanged: resend() overloads are generated with @jvmoverloads, and ResendWorker is an open class so callers can still subclass it anonymously and override process(). The duplicated OneShotPacket construction is pulled into a helper without changing behavior. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
toku-sa-n
marked this pull request as ready for review
November 19, 2026 06:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ResendController.javaをKotlinで書き直しました。シングルトン(
getInstance())の書き方は refactor: port ListenPortManager to Kotlin #269(ListenPortManager)に合わせています。Javaの呼び出し元をそのまま動かすため、
resend()のオーバーロードは@JvmOverloadsで生成し、ResendWorkerは無名クラスで継承できるようopen classにしています。重複していた
OneShotPacketの組み立てをヘルパーにまとめました(挙動は変えていません)。./gradlew build(spotless・テストを含む)が通ることを確認しました。By placing an "x" in the box, I hereby understand, accept and agree to be bound by the terms and conditions of the Contribution License Agreement.
🤖 Generated with Claude Code