refactor: merge opt-in api to new annotations

This commit is contained in:
2023-10-03 01:59:55 +08:00
parent 71203cd9bf
commit 1ffa0fab4f
8 changed files with 53 additions and 34 deletions

View File

@@ -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)。

View File

@@ -142,7 +142,7 @@ fun allowSendTooLargeData(): NameSpace
仅会在每次调用时生效,下一次没有调用此方法则此功能将被自动关闭。
你还需要在整个调用域中声明注解 `CauseProblemsApi` 以消除警告。
你还需要在整个调用域中声明注解 `SendTooLargeChannelData` 以消除警告。
::: danger

View File

@@ -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)。

View File

@@ -134,7 +134,7 @@ fun allowSendTooLargeData(): NameSpace
仅会在每次调用时生效,下一次没有调用此方法则此功能将被自动关闭。
你还需要在整个调用域中声明注解 `CauseProblemsApi` 以消除警告。
你还需要在整个调用域中声明注解 `SendTooLargeChannelData` 以消除警告。
::: danger