aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/plugability/DokkaJavaPlugin.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/plugability/DokkaJavaPlugin.kt')
-rw-r--r--core/src/main/kotlin/plugability/DokkaJavaPlugin.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/main/kotlin/plugability/DokkaJavaPlugin.kt b/core/src/main/kotlin/plugability/DokkaJavaPlugin.kt
index 1d8ea8aa..4c621703 100644
--- a/core/src/main/kotlin/plugability/DokkaJavaPlugin.kt
+++ b/core/src/main/kotlin/plugability/DokkaJavaPlugin.kt
@@ -28,8 +28,8 @@ data class ExtensionBuilder<T: Any> internal constructor(
private val name: String,
private val ext: ExtensionPoint<T>,
private val action: LazyEvaluated<T>,
- private val before: List<out Extension<*, *, *>>,
- private val after: List<out Extension<*, *, *>>,
+ private val before: List<Extension<*, *, *>>,
+ private val after: List<Extension<*, *, *>>,
private val override: OverrideKind = OverrideKind.None,
private val conditions: List<(DokkaConfiguration) -> Boolean>
){
@@ -62,11 +62,11 @@ data class ExtensionBuilder<T: Any> internal constructor(
abstract class DokkaJavaPlugin: DokkaPlugin() {
- fun <T: DokkaPlugin> plugin(clazz: Class<T>): T? =
+ fun <T: DokkaPlugin> plugin(clazz: Class<T>): T =
context?.plugin(clazz.kotlin) ?: throwIllegalQuery()
fun <T: Any> extend(func: (ExtensionBuilderStart) -> ExtensionBuilder<T>): Lazy<Extension<T, *, *>> =
lazy { func(ExtensionBuilderStart()).build() }.also { unsafeInstall(it) }
-} \ No newline at end of file
+}