Compare commits
2 Commits
ca6b4df548
...
edbb3f682f
| Author | SHA1 | Date | |
|---|---|---|---|
| edbb3f682f | |||
| 1f76f364b4 |
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Main
|
# Main
|
||||||
|
|
||||||
gradle = "9.5.0" # https://gradle.org/releases/
|
gradle = "9.5.1" # https://gradle.org/releases/
|
||||||
|
|
||||||
kotlin = "2.3.21" # https://kotlinlang.org/docs/releases.html#release-details
|
kotlin = "2.3.21" # https://kotlinlang.org/docs/releases.html#release-details
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
retries=0
|
retries=0
|
||||||
retryBackOffMs=500
|
retryBackOffMs=500
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/<unknown>/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
|||||||
@@ -4,18 +4,18 @@ package org.duckdns.davygora.matrix.util
|
|||||||
inline fun <reified T> Any.toListChecked(): List<T> =
|
inline fun <reified T> Any.toListChecked(): List<T> =
|
||||||
when (this) {
|
when (this) {
|
||||||
is List<*> -> this
|
is List<*> -> this
|
||||||
is Collection<*> -> this.toList()
|
is Collection<*> -> toList()
|
||||||
is Iterable<*> -> this.toList()
|
is Iterable<*> -> toList()
|
||||||
is Sequence<*> -> this.toList()
|
is Sequence<*> -> toList()
|
||||||
is Array<*> -> this.asList()
|
is Array<*> -> asList()
|
||||||
is BooleanArray -> this.asList()
|
is BooleanArray -> asList()
|
||||||
is ByteArray -> this.asList()
|
is ByteArray -> asList()
|
||||||
is CharArray -> this.asList()
|
is CharArray -> asList()
|
||||||
is DoubleArray -> this.asList()
|
is DoubleArray -> asList()
|
||||||
is FloatArray -> this.asList()
|
is FloatArray -> asList()
|
||||||
is IntArray -> this.asList()
|
is IntArray -> asList()
|
||||||
is LongArray -> this.asList()
|
is LongArray -> asList()
|
||||||
is ShortArray -> this.asList()
|
is ShortArray -> asList()
|
||||||
else -> error("Unsupported type: ${this::class}")
|
else -> error("Unsupported type: ${this::class}")
|
||||||
}.also { list ->
|
}.also { list ->
|
||||||
require(list.all { it is T })
|
require(list.all { it is T })
|
||||||
|
|||||||
Reference in New Issue
Block a user