From a070853d9cc4d441184fe4a84afc4d55da88b103 Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Wed, 18 May 2022 18:57:46 +1000 Subject: Remove outdated suppressions (#2501) --- .../src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt | 2 -- .../src/main/kotlin/org/jetbrains/dokka/gradle/DokkaProperty.kt | 1 - .../kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt | 2 -- .../src/main/kotlin/org/jetbrains/dokka/gradle/automagicTypedProxy.kt | 1 - 4 files changed, 6 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt index f9f48404..1123328a 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt @@ -1,5 +1,3 @@ -@file:Suppress("UnstableApiUsage") - package org.jetbrains.dokka.gradle import groovy.lang.Closure diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaProperty.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaProperty.kt index 51f6d297..f20513d2 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaProperty.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaProperty.kt @@ -10,7 +10,6 @@ import kotlin.reflect.typeOf internal inline fun ObjectFactory.safeProperty() = property() internal inline fun Property.safeConvention(value: T): Property { - @Suppress("UnstableApiUsage") return this.convention(value).cast() } diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt index 21f0e268..717527d2 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/GradleDokkaSourceSetBuilder.kt @@ -1,5 +1,3 @@ -@file:Suppress("FunctionName", "UnstableApiUsage") - package org.jetbrains.dokka.gradle import groovy.lang.Closure diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/automagicTypedProxy.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/automagicTypedProxy.kt index 13f9c2ff..13155c5a 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/automagicTypedProxy.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/automagicTypedProxy.kt @@ -12,7 +12,6 @@ import java.lang.reflect.Proxy * Creates [java.lang.reflect.Proxy] with pass through invocation algorithm, * to create access proxy for [delegate] into [targetClassLoader]. */ -@Suppress("UNCHECKED_CAST") internal inline fun automagicTypedProxy(targetClassLoader: ClassLoader, delegate: Any): T = automagicProxy(targetClassLoader, T::class.java, delegate) as T -- cgit