aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt2
-rw-r--r--plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt18
2 files changed, 12 insertions, 8 deletions
diff --git a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt
index 38d904e4..5a9f0855 100644
--- a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt
+++ b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt
@@ -175,7 +175,7 @@ internal fun DClass.asJava(): DClass = copy(
private fun DTypeParameter.asJava(): DTypeParameter = copy(
variantTypeParameter = variantTypeParameter.withDri(dri.possiblyAsJava()),
- bounds = bounds.map { it.asJava() as Bound }
+ bounds = bounds.map { it.asJava() }
)
private fun Projection.asJava(): Projection = when(this) {
diff --git a/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt b/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt
index c6dc9a25..05d17308 100644
--- a/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt
+++ b/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt
@@ -257,9 +257,9 @@ class KotlinAsJavaPluginTest : AbstractCoreTest() {
|/src/main/kotlin/kotlinAsJavaPlugin/Test.kt
|package kotlinAsJavaPlugin
|
- | open class A { }
- | interface B
- | class C : A(), B
+ |open class A { }
+ |interface B
+ |class C : A(), B
""".trimMargin(),
configuration,
cleanupOutput = true
@@ -279,12 +279,16 @@ class KotlinAsJavaPluginTest : AbstractCoreTest() {
+"C"
}
+" extends "
- link {
- +"A"
+ group {
+ link {
+ +"A"
+ }
}
+" implements "
- link {
- +"B"
+ group {
+ link {
+ +"B"
+ }
}
}
}