refactor: remove "" and other comments

This commit is contained in:
2023-09-27 18:17:20 +08:00
parent 6704b06dfa
commit 809220d243
19 changed files with 169 additions and 169 deletions

View File

@@ -1158,7 +1158,7 @@ instance.current {
name = "stop"
emptyParam()
}.call()
// Note that because current() returns the CurrentClass object itself
// Note that because current() returns the CurrentClass object itself
// It CANNOT BE CALLED like the following
instance.current().current()
```
@@ -1549,7 +1549,7 @@ In find conditions you can only use **index** function once except **order**.
method {
name = "test"
param(BooleanType).index(num = 2)
// Wrong usage, please keep only one index method
// Wrong usage, please keep only one index method
returnType(StringClass).index(num = 1)
}
```
@@ -1676,7 +1676,7 @@ The following is the wrong way to use it.
field {
name = "test"
type = BooleanType
}.get().string() // Wrong usage, must be cast to the bytecode target type
}.get().string() // Wrong usage, must be cast to the bytecode target type
```
The following is the correct way to use it.

View File

@@ -29,15 +29,15 @@ A disallowed parameter type was set when looking up methods, constructors, and v
```kotlin
// Find a method
method {
// Invalid type example is set
// Invalid type example is set
param(false, 1, 0)
// Invalid type example is set
// Invalid type example is set
returnType = false
}
// Find a variable
field {
// Invalid type example is set
// Invalid type example is set
type = false
}
```

View File

@@ -1110,7 +1110,7 @@ instance.current {
name = "stop"
emptyParam()
}.call()
// 注意,因为 current() 返回的是 CurrentClass 自身对象,所以不能像下面这样调用
// 注意,因为 current() 返回的是 CurrentClass 自身对象,所以不能像下面这样调用
instance.current().current()
```
@@ -1492,7 +1492,7 @@ TestGeneric::class.java.generic()?.argument()?.method {
method {
name = "test"
param(BooleanType).index(num = 2)
// 错误的使用方法,请仅保留一个 index 方法
// 错误的使用方法,请仅保留一个 index 方法
returnType(StringClass).index(num = 1)
}
```
@@ -1619,7 +1619,7 @@ TestFoo::class.java.constructor()
field {
name = "test"
type = BooleanType
}.get().string() // 错误的使用方法,必须 cast 为字节码目标类型
}.get().string() // 错误的使用方法,必须 cast 为字节码目标类型
```
以下是正确的使用方法。

View File

@@ -29,15 +29,15 @@ Method/Constructor/Field match type "**TYPE**" not allowed
```kotlin
// 查找一个方法
method {
// 设置了无效的类型举例
// 设置了无效的类型举例
param(false, 1, 0)
// 设置了无效的类型举例
// 设置了无效的类型举例
returnType = false
}
// 查找一个变量
field {
// 设置了无效的类型举例
// 设置了无效的类型举例
type = false
}
```