Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
c3603832
Commit
c3603832
authored
Nov 16, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SinceMirai and MiraiExperimentalAPI annotations
parent
6844b108
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
11 deletions
+24
-11
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/Annotations.kt
...rc/commonMain/kotlin/net.mamoe.mirai/utils/Annotations.kt
+24
-11
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/Annotations.kt
View file @
c3603832
package
net.mamoe.mirai.utils
package
net.mamoe.mirai.utils
import
kotlin.annotation.AnnotationTarget.*
/**
/**
* 标记
这个类, 类型, 函数, 属性, 字段, 或构造器
为一个仅供 Mirai 内部使用的 API.
* 标记为一个仅供 Mirai 内部使用的 API.
*
*
* 这些 API 可能会在任意时刻更改, 且不会发布任何预警.
* 这些 API 可能会在任意时刻更改, 且不会发布任何预警.
*
我们非常不建议
使用这些 API.
*
非常不建议在发行版本中
使用这些 API.
*/
*/
@Experimental
(
level
=
Experimental
.
Level
.
ERROR
)
@Experimental
(
level
=
Experimental
.
Level
.
ERROR
)
@Target
(
@Target
(
CLASS
,
TYPEALIAS
,
FUNCTION
,
PROPERTY
,
FIELD
,
CONSTRUCTOR
)
AnnotationTarget
.
CLASS
,
internal
annotation
class
MiraiInternalAPI
AnnotationTarget
.
TYPEALIAS
,
AnnotationTarget
.
FUNCTION
,
/**
AnnotationTarget
.
PROPERTY
,
* 标记这个类, 类型, 函数, 属性, 字段, 或构造器为实验性的.
AnnotationTarget
.
FIELD
,
*
AnnotationTarget
.
CONSTRUCTOR
* 这些 API 不具有稳定性, 且可能会在任意时刻更改.
)
* 不建议在发行版本中使用这些 API.
annotation
class
InternalAPI
*/
\ No newline at end of file
@Experimental
(
level
=
Experimental
.
Level
.
ERROR
)
@Target
(
CLASS
,
TYPEALIAS
,
FUNCTION
,
PROPERTY
,
FIELD
,
CONSTRUCTOR
)
internal
annotation
class
MiraiExperimentalAPI
/**
* 标记这个 API 是自 Mirai 某个版本起才受支持.
*/
@Target
(
CLASS
,
PROPERTY
,
FIELD
,
CONSTRUCTOR
,
FUNCTION
,
PROPERTY_GETTER
,
PROPERTY_SETTER
,
TYPEALIAS
)
@Retention
(
AnnotationRetention
.
BINARY
)
@MustBeDocumented
internal
annotation
class
SinceMirai
(
val
version
:
String
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment