Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Enforce access restrictions to deprecated code
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
Allows applications to define custom access modifiers programmatically, to be enforced at compile time in the opt-in basis. Obviously, there's no runtime check either --- this is strictly a voluntary annotations. This mechanism is useful for actually making sure that deprecated features are not used (without actually removing such declarations, which would break binary compatibility.)