From 921192e64c7f1df02692c1ec7f24f4a8bc9b7231 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Fri, 24 Mar 2017 22:02:17 +0300 Subject: Fix GFM format crash in Guice --- core/src/main/kotlin/Formats/GFMFormatService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/src/main/kotlin/Formats/GFMFormatService.kt b/core/src/main/kotlin/Formats/GFMFormatService.kt index cb31a1d3..f741561c 100644 --- a/core/src/main/kotlin/Formats/GFMFormatService.kt +++ b/core/src/main/kotlin/Formats/GFMFormatService.kt @@ -1,6 +1,8 @@ package org.jetbrains.dokka import com.google.inject.Inject +import com.google.inject.name.Named +import org.jetbrains.dokka.Utilities.impliedPlatformsName open class GFMOutputBuilder(to: StringBuilder, location: Location, @@ -52,7 +54,7 @@ open class GFMFormatService(locationService: LocationService, @Inject constructor(locationService: LocationService, signatureGenerator: LanguageService, - impliedPlatforms: List) : this(locationService, signatureGenerator, "md", impliedPlatforms) + @Named(impliedPlatformsName) impliedPlatforms: List) : this(locationService, signatureGenerator, "md", impliedPlatforms) override fun createOutputBuilder(to: StringBuilder, location: Location): FormattedOutputBuilder = GFMOutputBuilder(to, location, locationService, languageService, extension, impliedPlatforms) -- cgit