mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-01 08:15:37 +08:00
refactor: merge opt-in api to new annotations
This commit is contained in:
@@ -170,7 +170,7 @@ fun useDangerousOperation(option: String)
|
||||
|
||||
请在 `option` 中键入 `Yes do as I say!` 代表你同意允许所有危险行为。
|
||||
|
||||
你还需要在整个调用域中声明注解 `CauseProblemsApi` 以消除警告。
|
||||
你还需要在整个调用域中声明注解 `DangerousHookOperation` 以消除警告。
|
||||
|
||||
若你只需要 Hook `ClassLoader` 的 `loadClass` 方法,请参考 [ClassLoader.onLoadClass](../factory/ReflectionFactory#classloader-onloadclass-ext-method)。
|
||||
|
||||
|
@@ -142,7 +142,7 @@ fun allowSendTooLargeData(): NameSpace
|
||||
|
||||
仅会在每次调用时生效,下一次没有调用此方法则此功能将被自动关闭。
|
||||
|
||||
你还需要在整个调用域中声明注解 `CauseProblemsApi` 以消除警告。
|
||||
你还需要在整个调用域中声明注解 `SendTooLargeChannelData` 以消除警告。
|
||||
|
||||
::: danger
|
||||
|
||||
|
@@ -162,7 +162,7 @@ fun useDangerousOperation(option: String)
|
||||
|
||||
请在 `option` 中键入 `Yes do as I say!` 代表你同意允许所有危险行为。
|
||||
|
||||
你还需要在整个调用域中声明注解 `CauseProblemsApi` 以消除警告。
|
||||
你还需要在整个调用域中声明注解 `DangerousHookOperation` 以消除警告。
|
||||
|
||||
若你只需要 Hook `ClassLoader` 的 `loadClass` 方法,请参考 [ClassLoader.onLoadClass](../factory/ReflectionFactory#classloader-onloadclass-ext-method)。
|
||||
|
||||
|
@@ -134,7 +134,7 @@ fun allowSendTooLargeData(): NameSpace
|
||||
|
||||
仅会在每次调用时生效,下一次没有调用此方法则此功能将被自动关闭。
|
||||
|
||||
你还需要在整个调用域中声明注解 `CauseProblemsApi` 以消除警告。
|
||||
你还需要在整个调用域中声明注解 `SendTooLargeChannelData` 以消除警告。
|
||||
|
||||
::: danger
|
||||
|
||||
|
Reference in New Issue
Block a user