aboutsummaryrefslogtreecommitdiff
path: root/plugins/kotlin-as-java/src
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-03-10 14:18:11 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-11 10:26:11 +0100
commit35851c4f00bde0b66ce1d9ae8ca02bab761df819 (patch)
treea10cfc7a71907a957e97dc498344ab324f70cc54 /plugins/kotlin-as-java/src
parent35f56d1a1f38b6bc357e171dfa188962038a4a46 (diff)
downloaddokka-35851c4f00bde0b66ce1d9ae8ca02bab761df819.tar.gz
dokka-35851c4f00bde0b66ce1d9ae8ca02bab761df819.tar.bz2
dokka-35851c4f00bde0b66ce1d9ae8ca02bab761df819.zip
Remove nested packages from packages
Diffstat (limited to 'plugins/kotlin-as-java/src')
-rw-r--r--plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt3
1 files changed, 1 insertions, 2 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 4bf75101..2d73786b 100644
--- a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt
+++ b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt
@@ -56,8 +56,7 @@ internal fun Package.asJava(): Package {
return copy(
functions = emptyList(),
properties = emptyList(),
- classlikes = classlikes.map { it.asJava() } + syntheticClasses,
- packages = packages.map { it.asJava() }
+ classlikes = classlikes.map { it.asJava() } + syntheticClasses
)
}