r/java • u/TheMrMilchmann • Jun 05 '26
Introducing opt-in requirements for Java APIs
https://osmerion.github.io/OptIn/blog/welcome
49
Upvotes
r/java • u/TheMrMilchmann • Jun 05 '26
View all comments
Show parent comment
2
u/repeating_bears Jun 05 '26
Thanks
Is OptIn scoped to only the block it annotates? If I call sendFancyNewNotification in 50 places, do I have to annotate all of the callers? Or is one OptIn anywhere ok?