Suppress("PRE_RELEASE_CLASS")

This commit is contained in:
Karlatemp 2020-06-23 18:28:15 +08:00
parent a26b607f35
commit 5551d2f048
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8
7 changed files with 27 additions and 23 deletions

View File

@ -7,7 +7,7 @@
* https://github.com/mamoe/mirai/blob/master/LICENSE * https://github.com/mamoe/mirai/blob/master/LICENSE
*/ */
@file:Suppress("FunctionName", "INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @file:Suppress("FunctionName", "INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "PRE_RELEASE_CLASS")
package net.mamoe.mirai.console.codegen package net.mamoe.mirai.console.codegen

View File

@ -1,3 +1,5 @@
@file:Suppress("PRE_RELEASE_CLASS")
package net.mamoe.mirai.console.codegen package net.mamoe.mirai.console.codegen
/** /**
@ -5,8 +7,6 @@ package net.mamoe.mirai.console.codegen
*/ */
open class JClazz(val primitiveName: String, val packageName: String) { open class JClazz(val primitiveName: String, val packageName: String) {
open val funName: String = "value" open val funName: String = "value"
} }
@ -17,8 +17,8 @@ class JListClazz(val item:JClazz):JClazz("List<${item.packageName}>","List<${ite
class JArrayClazz(item: JClazz) : JClazz(item.primitiveName + "[]", item.primitiveName + "[]") class JArrayClazz(item: JClazz) : JClazz(item.primitiveName + "[]", item.primitiveName + "[]")
class JMapClazz(key:JClazz,value:JClazz):JClazz("Map<${key.packageName},${value.packageName}>","Map<${key.packageName},${value.packageName}>") class JMapClazz(key: JClazz, value: JClazz) :
JClazz("Map<${key.packageName},${value.packageName}>", "Map<${key.packageName},${value.packageName}>")
internal val J_NUMBERS = listOf( internal val J_NUMBERS = listOf(

View File

@ -6,6 +6,7 @@
* *
* https://github.com/mamoe/mirai/blob/master/LICENSE * https://github.com/mamoe/mirai/blob/master/LICENSE
*/ */
@file:Suppress("PRE_RELEASE_CLASS")
package net.mamoe.mirai.console.codegen package net.mamoe.mirai.console.codegen

View File

@ -6,6 +6,7 @@
* *
* https://github.com/mamoe/mirai/blob/master/LICENSE * https://github.com/mamoe/mirai/blob/master/LICENSE
*/ */
@file:Suppress("PRE_RELEASE_CLASS")
package net.mamoe.mirai.console.codegen package net.mamoe.mirai.console.codegen

View File

@ -7,6 +7,8 @@
* https://github.com/mamoe/mirai/blob/master/LICENSE * https://github.com/mamoe/mirai/blob/master/LICENSE
*/ */
@file:Suppress("PRE_RELEASE_CLASS")
package net.mamoe.mirai.console.codegen package net.mamoe.mirai.console.codegen

View File

@ -6,7 +6,7 @@
* *
* https://github.com/mamoe/mirai/blob/master/LICENSE * https://github.com/mamoe/mirai/blob/master/LICENSE
*/ */
@file:Suppress("ClassName", "unused") @file:Suppress("ClassName", "unused", "PRE_RELEASE_CLASS")
package net.mamoe.mirai.console.codegen package net.mamoe.mirai.console.codegen

View File

@ -7,7 +7,7 @@
* https://github.com/mamoe/mirai/blob/master/LICENSE * https://github.com/mamoe/mirai/blob/master/LICENSE
*/ */
@file:Suppress("NOTHING_TO_INLINE", "MemberVisibilityCanBePrivate", "unused") @file:Suppress("NOTHING_TO_INLINE", "MemberVisibilityCanBePrivate", "unused","PRE_RELEASE_CLASS")
package net.mamoe.mirai.console.codegen package net.mamoe.mirai.console.codegen