Skip to content

Update java docs for getAllVariantsByFlag usage#2642

Merged
myronkaifung merged 3 commits into
mainfrom
chore/update-java-getAllVariantsByFlag
May 10, 2026
Merged

Update java docs for getAllVariantsByFlag usage#2642
myronkaifung merged 3 commits into
mainfrom
chore/update-java-getAllVariantsByFlag

Conversation

@tylerjroach
Copy link
Copy Markdown
Contributor

Summary

  • Updates the Java feature flags doc to use the new getAllVariantsByFlag() method, which returns Map<String, SelectedVariant<Object>> keyed by flag key
  • Mirrors the SDK change in mixpanel/mixpanel-java#70, where getAllVariants() is now @Deprecated in favor of getAllVariantsByFlag()
  • Drops the per-entry isSuccess() check in the example since the new (and old) implementation already filters out fallbacks before returning

Test plan

  • Visual review of the rendered code block in the Java flags doc

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@tylerjroach tylerjroach requested a review from a team as a code owner May 1, 2026 14:55
@tylerjroach tylerjroach requested review from pmackle and removed request for a team May 1, 2026 14:55
@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 10, 2026 9:16pm

Request Review

Copy link
Copy Markdown
Contributor

@msiebert msiebert left a comment

Choose a reason for hiding this comment

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

@myronkaifung myronkaifung merged commit e38924e into main May 10, 2026
11 checks passed
@myronkaifung myronkaifung deleted the chore/update-java-getAllVariantsByFlag branch May 10, 2026 21:16
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.

3 participants