aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-03-24 22:02:17 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-03-24 22:02:17 +0300
commit921192e64c7f1df02692c1ec7f24f4a8bc9b7231 (patch)
tree45a1a1723cee93a211c4f1660dd08368bd95b584 /core
parent0fccc3f91c08b3f3d149a11c81946e1824fc821e (diff)
downloaddokka-921192e64c7f1df02692c1ec7f24f4a8bc9b7231.tar.gz
dokka-921192e64c7f1df02692c1ec7f24f4a8bc9b7231.tar.bz2
dokka-921192e64c7f1df02692c1ec7f24f4a8bc9b7231.zip
Fix GFM format crash in Guice
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/Formats/GFMFormatService.kt4
1 files changed, 3 insertions, 1 deletions
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<String>) : this(locationService, signatureGenerator, "md", impliedPlatforms)
+ @Named(impliedPlatformsName) impliedPlatforms: List<String>) : this(locationService, signatureGenerator, "md", impliedPlatforms)
override fun createOutputBuilder(to: StringBuilder, location: Location): FormattedOutputBuilder =
GFMOutputBuilder(to, location, locationService, languageService, extension, impliedPlatforms)