diff --git a/eco-api/src/main/kotlin/com/willfp/eco/core/map/DefaultMap.kt b/eco-api/src/main/kotlin/com/willfp/eco/core/map/DefaultMap.kt index 8754a4b5..bfd9a051 100644 --- a/eco-api/src/main/kotlin/com/willfp/eco/core/map/DefaultMap.kt +++ b/eco-api/src/main/kotlin/com/willfp/eco/core/map/DefaultMap.kt @@ -8,7 +8,7 @@ package com.willfp.eco.core.map * @see ListMap */ @Suppress("RedundantOverride") -class MutableListMap : ListMap() { +class MutableListMap : ListMap() { /** * Override with enforced MutableList type. */ @@ -18,7 +18,7 @@ class MutableListMap : ListMap() { /** * Override with enforced MutableList type. */ - override fun getOrDefault(key: K, defaultValue: MutableList?): MutableList { + override fun getOrDefault(key: K, defaultValue: MutableList): MutableList { return super.getOrDefault(key, defaultValue) } } @@ -44,13 +44,13 @@ fun listMap() = /** * @see DefaultMap.createNestedMap */ -fun nestedMap() = +fun nestedMap() = DefaultMap.createNestedMap() /** * @see DefaultMap.createNestedListMap */ -fun nestedListMap() = +fun nestedListMap() = DefaultMap>() { MutableListMap() } diff --git a/gradle.properties b/gradle.properties index 8a209d93..5b405e07 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ -version = 6.59.1 +version = 6.60.0 plugin-name = eco kotlin.code.style = official \ No newline at end of file