Skip to content

Commit bc367c1

Browse files
Gradle 9.0 compatibility
1 parent abe8b16 commit bc367c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ktlint-gradle-plugin/src/main/kotlin/io/github/usefulness/tasks/KtlintWorkTask.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,20 +175,20 @@ public abstract class KtlintWorkTask(
175175
}
176176
}
177177

178-
internal inline fun <reified T> ObjectFactory.property(default: T? = null): Property<T> = property(T::class.java).apply {
178+
internal inline fun <reified T : Any> ObjectFactory.property(default: T? = null): Property<T> = property(T::class.java).apply {
179179
convention(default)
180180
}
181181

182-
internal inline fun <reified T> ObjectFactory.property(default: Provider<T>): Property<T> = property(T::class.java).apply {
182+
internal inline fun <reified T : Any> ObjectFactory.property(default: Provider<T>): Property<T> = property(T::class.java).apply {
183183
convention(default)
184184
}
185185

186-
internal inline fun <reified T> ObjectFactory.listProperty(default: Iterable<T> = emptyList()): ListProperty<T> =
186+
internal inline fun <reified T : Any> ObjectFactory.listProperty(default: Iterable<T> = emptyList()): ListProperty<T> =
187187
listProperty(T::class.java).apply {
188188
convention(default)
189189
}
190190

191-
internal inline fun <reified K, reified V> ObjectFactory.mapProperty(default: Map<K, V> = emptyMap()): MapProperty<K, V> =
191+
internal inline fun <reified K : Any, reified V : Any> ObjectFactory.mapProperty(default: Map<K, V> = emptyMap()): MapProperty<K, V> =
192192
mapProperty(K::class.java, V::class.java).apply {
193193
convention(default)
194194
}

0 commit comments

Comments
 (0)