Skip to content

Update documentation to exclude static methods from @OverrideOnly #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ expect class ApiStatus private constructor() {
*
* Indicates that the annotated method is part of SPI (Service Provider Interface), which is intended to be
* **only implemented or overridden** but not called by clients of the declaring library.
* If a class or interface is marked with this annotation it means that all its methods can be only overridden.
* If a class or interface is marked with this annotation it means that all its instance methods can be only overridden.
*
*
* Although there is a standard mechanism of `protected` methods, it is not applicable to interface's methods.
Expand Down
2 changes: 1 addition & 1 deletion src/jvmMain/java/org/jetbrains/annotations/ApiStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private ApiStatus() {
/**
* <p>Indicates that the annotated method is part of SPI (Service Provider Interface), which is intended to be
* <strong>only implemented or overridden</strong> but not called by clients of the declaring library.
* If a class or interface is marked with this annotation it means that all its methods can be only overridden.</p>
* If a class or interface is marked with this annotation it means that all its instance methods can be only overridden.</p>
*
* <p>Although there is a standard mechanism of {@code protected} methods, it is not applicable to interface's methods.
* Also, API method may be made {@code public} to allow calls only from different parts of the declaring library but not outside it.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ actual class ApiStatus private actual constructor() {
*
* Indicates that the annotated method is part of SPI (Service Provider Interface), which is intended to be
* **only implemented or overridden** but not called by clients of the declaring library.
* If a class or interface is marked with this annotation it means that all its methods can be only overridden.
* If a class or interface is marked with this annotation it means that all its instance methods can be only overridden.
*
*
* Although there is a standard mechanism of `protected` methods, it is not applicable to interface's methods.
Expand Down