Skip to content

Commit 2f58ca5

Browse files
committed
removed setting type bound
1 parent 5c1fa02 commit 2f58ca5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/lambda/config/Setting.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ import kotlin.reflect.KProperty
9494
* @property type The type reflection of the setting.
9595
* @property visibility A function that determines whether the setting is visible.
9696
*/
97-
abstract class SettingCore<T : Any>(
97+
abstract class SettingCore<T>(
9898
var defaultValue: T,
9999
val type: Type
100100
) {
@@ -150,7 +150,7 @@ abstract class SettingCore<T : Any>(
150150
}
151151
}
152152

153-
class Setting<T : SettingCore<R>, R : Any>(
153+
class Setting<T : SettingCore<R>, R>(
154154
override val name: String,
155155
override val description: String,
156156
var core: T,

0 commit comments

Comments
 (0)