aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2023-07-20 00:23:17 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-07-20 00:23:17 +0000
commit77665b03848c6574ff3e40ec875c347d5eb41a8f (patch)
tree4058cd853f36166d424eee7e69e95ad3125d1189
parent2cb80150c4bcdcd31dc10a82ef5a17f7a73a0ee5 (diff)
parent7b150bbe96dcadbd05de199f8bbaaa96db6b4247 (diff)
downloaddokka-77665b03848c6574ff3e40ec875c347d5eb41a8f.tar.gz
Original change: https://android-review.googlesource.com/c/platform/external/dokka/+/2666058 Change-Id: Iaa4f849961a3772426406a4f0b21314176d3f29f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--Android.bp1
-rw-r--r--core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt4
2 files changed, 2 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index ba7933be7..dbfdb5030 100644
--- a/Android.bp
+++ b/Android.bp
@@ -50,7 +50,6 @@ java_binary_host {
// (it references packages under com.sun.tools.doclets which are not
// exported from the jdk.javadoc module) (see b/140097603):
java_version: "1.8",
- kotlincflags: ["-language-version 1.3 -api-version 1.3 -jvm-target 1.8"],
use_tools_jar: true,
java_resource_dirs: ["core/src/main/resources"],
}
diff --git a/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt b/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt
index 38921608b..59d898a2a 100644
--- a/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt
+++ b/core/src/main/kotlin/Formats/JavaLayoutHtml/JavaLayoutHtmlFormatOutputBuilder.kt
@@ -1068,7 +1068,7 @@ open class JavaLayoutHtmlFormatOutputBuilder(
val inheritedFieldsByReceiver =
allInheritedMembers.filter {
- it == NodeKind.Field && it.constantValue() != null
+ it.kind == NodeKind.Field && it.constantValue() != null
}.groupBy { it.owner!! }
val originalExtensions = if (!isCompanion) node.extensions else node.owner!!.extensions
@@ -1168,4 +1168,4 @@ fun DocumentationNode.constantValue(): String? =
private val visibilityNames = setOf("public", "protected", "internal", "package-local", "private")
fun DocumentationNode.visibility(): String =
- details(NodeKind.Modifier).firstOrNull { it.name in visibilityNames }?.name ?: "" \ No newline at end of file
+ details(NodeKind.Modifier).firstOrNull { it.name in visibilityNames }?.name ?: ""