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
5
u/TheMrMilchmann Jun 05 '26
Basically,
@OptInapplies to the scope. You can opt in globally (via CLI args) or by using@OptIn(ExperimentalNotifications.class)on the module descriptor.