Skip to content

Commit 2a28eab

Browse files
authored
Merge pull request #120 from JojOatXGME/override-only-static
Update documentation to exclude static methods from `@OverrideOnly`
2 parents 5ed7516 + dd44b5b commit 2a28eab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/commonMain/kotlin/org/jetbrains/annotations/ApiStatus.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ expect class ApiStatus private constructor() {
200200
*
201201
* Indicates that the annotated method is part of SPI (Service Provider Interface), which is intended to be
202202
* **only implemented or overridden** but not called by clients of the declaring library.
203-
* If a class or interface is marked with this annotation it means that all its methods can be only overridden.
203+
* If a class or interface is marked with this annotation it means that all its instance methods can be only overridden.
204204
*
205205
*
206206
* Although there is a standard mechanism of `protected` methods, it is not applicable to interface's methods.

src/jvmMain/java/org/jetbrains/annotations/ApiStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private ApiStatus() {
149149
/**
150150
* <p>Indicates that the annotated method is part of SPI (Service Provider Interface), which is intended to be
151151
* <strong>only implemented or overridden</strong> but not called by clients of the declaring library.
152-
* If a class or interface is marked with this annotation it means that all its methods can be only overridden.</p>
152+
* If a class or interface is marked with this annotation it means that all its instance methods can be only overridden.</p>
153153
*
154154
* <p>Although there is a standard mechanism of {@code protected} methods, it is not applicable to interface's methods.
155155
* Also, API method may be made {@code public} to allow calls only from different parts of the declaring library but not outside it.</p>

src/nonJvmMain/kotlin/org/jetbrains/annotations/ApiStatus.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ actual class ApiStatus private actual constructor() {
200200
*
201201
* Indicates that the annotated method is part of SPI (Service Provider Interface), which is intended to be
202202
* **only implemented or overridden** but not called by clients of the declaring library.
203-
* If a class or interface is marked with this annotation it means that all its methods can be only overridden.
203+
* If a class or interface is marked with this annotation it means that all its instance methods can be only overridden.
204204
*
205205
*
206206
* Although there is a standard mechanism of `protected` methods, it is not applicable to interface's methods.

0 commit comments

Comments
 (0)