Make JvmPluginInternal.description and .dataFolder final

This commit is contained in:
Him188 2020-08-20 16:08:25 +08:00
parent 6ee1f91314
commit 8d2009d273

View File

@ -49,7 +49,7 @@ internal abstract class JvmPluginInternal(
@Suppress("PropertyName") @Suppress("PropertyName")
internal open lateinit var _description: JvmPluginDescription internal open lateinit var _description: JvmPluginDescription
override val description: JvmPluginDescription get() = _description final override val description: JvmPluginDescription get() = _description
final override val logger: MiraiLogger by lazy { final override val logger: MiraiLogger by lazy {
MiraiConsole.newLogger( MiraiConsole.newLogger(
@ -59,7 +59,7 @@ internal abstract class JvmPluginInternal(
private var firstRun = true private var firstRun = true
override val dataFolder: File by lazy { final override val dataFolder: File by lazy {
File( File(
PluginManager.pluginsDataFolder, PluginManager.pluginsDataFolder,
description.name description.name