Skip to content

feat(code-review): Add Java, Kotlin, and Android reference - #595

Draft
runningcode wants to merge 1 commit into
mainfrom
no/code-review-java-kotlin-android
Draft

runningcode wants to merge 1 commit into
mainfrom
no/code-review-java-kotlin-android

Conversation

@runningcode

Copy link
Copy Markdown

The built-in code-review skill has references only for JS/TS, Python, and GitHub workflows. On Java, Kotlin, and Android code it falls back to the core contract, which doesn't name the platform bugs that come up most there.

We backtested code-review on 80 getsentry/sentry-java PRs from October and November 2026. On the same commits, it caught 1 of the 15 valid generic bugs that Cursor Bugbot found. Most of the misses were JVM and Android behavior:

  • service binding and unbinding, and leaked ParcelFileDescriptors
  • API-level guards and behavior that differs by API level
  • wall-clock deadlines, and elapsedRealtime counting deep sleep
  • NoSuchMethodError from old optional dependencies
  • WebView and main-thread affinity

This adds references/java-kotlin-android.md in the same format as the other references, and routes it from SKILL.md. Besides the classes above, it covers lost executor failures, swallowed interrupts, coroutine cancellation treated as failure, and Javadoc that contradicts the code. Its false-positive controls cover desugaring, AndroidX *Compat helpers, and guarded callers. It sticks to generic bugs, with no sentry-java conventions. SPEC.md and SOURCES.md record the new scope and where it came from, and package.test.ts checks that the file ships.

🤖 Generated with Claude Code

The code-review skill had references only for JS/TS, Python, and
GitHub workflows. A backtest on getsentry/sentry-java PRs found it
caught 1 of 15 generic bugs Cursor Bugbot found on the same commit.
Most misses were JVM and Android platform behavior the core contract
does not name.

The new reference covers missing API-level guards, old optional
dependencies, unpaired bind and unregister, leaked descriptors, work
after lifecycle end, main-thread blocking, clock choice, lost executor
failures, swallowed interrupts, coroutine cancellation treated as
failure, and docs that contradict code. False-positive controls cover
desugaring, Compat helpers, and guarded callers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – warden — 3207c797 Deployed Dec 1, 2026 by vercel[bot]
Preview – warden-prod — 3207c797 Deployed Dec 1, 2026 by vercel[bot]
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