From 6de072edb9e78f8133899214e4c7322b631fc678 Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Mon, 7 Apr 2025 14:08:16 +0200 Subject: [PATCH 01/10] Fix docs --- api/src/main/kotlin/io/spine/protodata/ast/Coordinates.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/kotlin/io/spine/protodata/ast/Coordinates.kt b/api/src/main/kotlin/io/spine/protodata/ast/Coordinates.kt index 7d14a92fe..a9ea1dd72 100644 --- a/api/src/main/kotlin/io/spine/protodata/ast/Coordinates.kt +++ b/api/src/main/kotlin/io/spine/protodata/ast/Coordinates.kt @@ -161,7 +161,7 @@ private fun Location.toSpan(): Span { } /** - * Obtains coordinates for the file this [GenericDescriptor]. + * Obtains coordinates for this [GenericDescriptor]. */ internal fun GenericDescriptor.coordinates(): Coordinates { val fromResources = withSourceLines() From 4cbbbddcf9cb089dbb8a5785f8d74b0078c3c057 Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Mon, 7 Apr 2025 14:08:56 +0200 Subject: [PATCH 02/10] Use a pre-defined extension to create an instance of `OneofGroup` --- .../protodata/backend/event/MessageEvents.kt | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/backend/src/main/kotlin/io/spine/protodata/backend/event/MessageEvents.kt b/backend/src/main/kotlin/io/spine/protodata/backend/event/MessageEvents.kt index 03d2784c5..130db8fa5 100644 --- a/backend/src/main/kotlin/io/spine/protodata/backend/event/MessageEvents.kt +++ b/backend/src/main/kotlin/io/spine/protodata/backend/event/MessageEvents.kt @@ -30,7 +30,6 @@ import com.google.protobuf.Descriptors.Descriptor import com.google.protobuf.Descriptors.FieldDescriptor import com.google.protobuf.Descriptors.OneofDescriptor import io.spine.base.EventMessage -import io.spine.protodata.ast.Documentation import io.spine.protodata.ast.ProtoFileHeader import io.spine.protodata.ast.event.FieldEntered import io.spine.protodata.ast.event.FieldExited @@ -46,13 +45,13 @@ import io.spine.protodata.ast.event.typeDiscovered import io.spine.protodata.ast.event.typeEntered import io.spine.protodata.ast.event.typeExited import io.spine.protodata.ast.event.typeOptionDiscovered -import io.spine.protodata.ast.oneofGroup import io.spine.protodata.ast.produceOptionEvents import io.spine.protodata.ast.withAbsoluteFile import io.spine.protodata.protobuf.name import io.spine.protodata.protobuf.realNestedTypes import io.spine.protodata.protobuf.toField import io.spine.protodata.protobuf.toMessageType +import io.spine.protodata.protobuf.toOneOfGroup /** * Produces events for a message. @@ -135,19 +134,14 @@ internal class MessageEvents(header: ProtoFileHeader) : DeclarationEvents.produceOneofEvents( desc: OneofDescriptor ) { - val typeName = desc.containingType.name() - val documentation = Documentation.of(desc.containingType.file) + val containingType = desc.containingType.name() val oneofName = desc.name() - val oneofGroup = oneofGroup { - name = oneofName - declaringType = typeName - doc = documentation.forOneof(desc) - } + val oneofGroup = desc.toOneOfGroup() val path = header.file yield( oneofGroupEntered { file = path - type = typeName + type = containingType group = oneofGroup } ) @@ -164,7 +158,7 @@ internal class MessageEvents(header: ProtoFileHeader) : DeclarationEvents Date: Mon, 7 Apr 2025 14:10:05 +0200 Subject: [PATCH 03/10] Implement `OneofGroup.qualifiedName` extension --- .../main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt b/api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt index eeb43c206..0b17ba1be 100644 --- a/api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt +++ b/api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt @@ -34,3 +34,9 @@ public val OneofGroup.ref: OneofRef type = declaringType name = this@ref.name } + +/** + * The field name containing a qualified name of the declaring type. + */ +public val OneofGroup.qualifiedName: String + get() = "${declaringType.qualifiedName}.${name.value}" From b124fb846e425fc69899dfb1bffcf62ac54a6365 Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Wed, 9 Apr 2025 10:41:00 +0200 Subject: [PATCH 04/10] Take the latest `time` --- buildSrc/src/main/kotlin/io/spine/dependency/local/Time.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/io/spine/dependency/local/Time.kt b/buildSrc/src/main/kotlin/io/spine/dependency/local/Time.kt index 1f7e2a60a..567cd45cb 100644 --- a/buildSrc/src/main/kotlin/io/spine/dependency/local/Time.kt +++ b/buildSrc/src/main/kotlin/io/spine/dependency/local/Time.kt @@ -33,7 +33,7 @@ package io.spine.dependency.local */ @Suppress("ConstPropertyName") object Time { - const val version = "2.0.0-SNAPSHOT.200" + const val version = "2.0.0-SNAPSHOT.202" const val group = Spine.group const val artifact = "spine-time" const val lib = "$group:$artifact:$version" From 5edf214cd76d6bf6a7d9068471e29125469f0659 Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Wed, 9 Apr 2025 10:59:07 +0200 Subject: [PATCH 05/10] Implement `TypeName.findJavaClassName()` --- .../io/spine/protodata/java/TypeNameExts.kt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/java/src/main/kotlin/io/spine/protodata/java/TypeNameExts.kt b/java/src/main/kotlin/io/spine/protodata/java/TypeNameExts.kt index 12f8ba703..aa5408e11 100644 --- a/java/src/main/kotlin/io/spine/protodata/java/TypeNameExts.kt +++ b/java/src/main/kotlin/io/spine/protodata/java/TypeNameExts.kt @@ -73,10 +73,19 @@ public fun TypeName.javaClassName(accordingTo: ProtoFileHeader): ClassName = * @param typeSystem The type system to be used for obtaining the header for the proto * file in which this message type is declared. */ -public fun TypeName.javaClassName(typeSystem: TypeSystem): ClassName { - val header = typeSystem.findMessageOrEnum(this)?.second +public fun TypeName.javaClassName(typeSystem: TypeSystem): ClassName = + findJavaClassName(typeSystem) ?: error("Cannot find Java `${simply()}` for the Protobuf `${qualifiedName}`.") - val className = javaClassName(header) + +/** + * Finds a fully qualified Java class name, generated for the Protobuf type with this name. + * + * @param typeSystem The type system to be used for obtaining the header for the proto + * file in which this message type is declared. + */ +public fun TypeName.findJavaClassName(typeSystem: TypeSystem): ClassName? { + val header = typeSystem.findMessageOrEnum(this)?.second + val className = header?.let { javaClassName(it) } return className } From 5d07134fc6b2d75e69e12a36ebaebe91a07dd2be Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Mon, 14 Apr 2025 12:52:19 +0200 Subject: [PATCH 06/10] Take the latest `spine-core` --- buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJava.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJava.kt b/buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJava.kt index 0015575fb..ba0e7dcd9 100644 --- a/buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJava.kt +++ b/buildSrc/src/main/kotlin/io/spine/dependency/local/CoreJava.kt @@ -34,7 +34,7 @@ package io.spine.dependency.local @Suppress("ConstPropertyName", "unused") object CoreJava { const val group = Spine.group - const val version = "2.0.0-SNAPSHOT.300" + const val version = "2.0.0-SNAPSHOT.301" const val coreArtifact = "spine-core" const val clientArtifact = "spine-client" From 42e4f687444344bc45feb07c930d076a6e7ede93 Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Mon, 14 Apr 2025 13:37:40 +0200 Subject: [PATCH 07/10] Bump the version -> `0.93.11` --- version.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.gradle.kts b/version.gradle.kts index a59805bb2..0b9a33c02 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -32,4 +32,4 @@ * * For dependencies on Spine SDK module please see [io.spine.dependency.local.Spine]. */ -val protoDataVersion: String by extra("0.93.10") +val protoDataVersion: String by extra("0.93.11") From 4efbe2d7c7b1992459317cf253ac0aa3246b5d5d Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Mon, 14 Apr 2025 13:42:36 +0200 Subject: [PATCH 08/10] Update reports --- dependencies.md | 44 ++++++++++++++++++++++---------------------- pom.xml | 8 ++++---- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/dependencies.md b/dependencies.md index ab05ba2ff..822d8038e 100644 --- a/dependencies.md +++ b/dependencies.md @@ -1,6 +1,6 @@ -# Dependencies of `io.spine.protodata:protodata-api:0.93.10` +# Dependencies of `io.spine.protodata:protodata-api:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -1113,12 +1113,12 @@ The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:36 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:09 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-api-tests:0.93.10` +# Dependencies of `io.spine.protodata:protodata-api-tests:0.93.11` ## Runtime 1. **Group** : org.jetbrains. **Name** : annotations. **Version** : 13.0. @@ -1955,12 +1955,12 @@ This report was generated on **Fri Apr 04 17:20:36 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:37 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:09 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-backend:0.93.10` +# Dependencies of `io.spine.protodata:protodata-backend:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -3069,12 +3069,12 @@ This report was generated on **Fri Apr 04 17:20:37 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:37 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:09 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-cli:0.93.10` +# Dependencies of `io.spine.protodata:protodata-cli:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -4218,12 +4218,12 @@ This report was generated on **Fri Apr 04 17:20:37 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:38 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:10 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-gradle-api:0.93.10` +# Dependencies of `io.spine.protodata:protodata-gradle-api:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -5259,12 +5259,12 @@ This report was generated on **Fri Apr 04 17:20:38 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:38 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:10 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-gradle-plugin:0.93.10` +# Dependencies of `io.spine.protodata:protodata-gradle-plugin:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -6388,12 +6388,12 @@ This report was generated on **Fri Apr 04 17:20:38 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:38 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:10 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-java:0.93.10` +# Dependencies of `io.spine.protodata:protodata-java:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -7502,12 +7502,12 @@ This report was generated on **Fri Apr 04 17:20:38 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:39 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:11 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-params:0.93.10` +# Dependencies of `io.spine.protodata:protodata-params:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -8619,12 +8619,12 @@ This report was generated on **Fri Apr 04 17:20:39 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:39 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:11 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-protoc:0.93.10` +# Dependencies of `io.spine.protodata:protodata-protoc:0.93.11` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -9454,12 +9454,12 @@ This report was generated on **Fri Apr 04 17:20:39 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:39 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:11 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-test-env:0.93.10` +# Dependencies of `io.spine.protodata:protodata-test-env:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -10575,12 +10575,12 @@ This report was generated on **Fri Apr 04 17:20:39 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:40 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). +This report was generated on **Mon Apr 14 13:39:11 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.protodata:protodata-testlib:0.93.10` +# Dependencies of `io.spine.protodata:protodata-testlib:0.93.11` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.15.3. @@ -11815,4 +11815,4 @@ This report was generated on **Fri Apr 04 17:20:40 CEST 2025** using [Gradle-Lic The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Fri Apr 04 17:20:40 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file +This report was generated on **Mon Apr 14 13:39:12 CEST 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file diff --git a/pom.xml b/pom.xml index 008487bf8..638596cd7 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ all modules and does not describe the project structure per-subproject. --> io.spine.protodata ProtoData -0.93.10 +0.93.11 2015 @@ -110,7 +110,7 @@ all modules and does not describe the project structure per-subproject. io.spine spine-server - 2.0.0-SNAPSHOT.300 + 2.0.0-SNAPSHOT.301 compile @@ -206,13 +206,13 @@ all modules and does not describe the project structure per-subproject. io.spine.tools spine-testutil-server - 2.0.0-SNAPSHOT.300 + 2.0.0-SNAPSHOT.301 test io.spine.tools spine-time-testlib - 2.0.0-SNAPSHOT.200 + 2.0.0-SNAPSHOT.202 test From 8fc00e4fc932225de6d9c5c13e210ae2a32ab465 Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Mon, 14 Apr 2025 13:45:02 +0200 Subject: [PATCH 09/10] Shorten docs --- api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt b/api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt index 0b17ba1be..f80b0e8b8 100644 --- a/api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt +++ b/api/src/main/kotlin/io/spine/protodata/ast/OneofGroupExts.kt @@ -36,7 +36,7 @@ public val OneofGroup.ref: OneofRef } /** - * The field name containing a qualified name of the declaring type. + * The qualified name of this [OneofGroup]. */ public val OneofGroup.qualifiedName: String get() = "${declaringType.qualifiedName}.${name.value}" From 703bcbfb10482637d18dfaf521ea3aa2841b368d Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Mon, 14 Apr 2025 17:55:06 +0200 Subject: [PATCH 10/10] Remove unnecessary `fully qualified` mentioning --- .../main/kotlin/io/spine/protodata/java/TypeNameExts.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/src/main/kotlin/io/spine/protodata/java/TypeNameExts.kt b/java/src/main/kotlin/io/spine/protodata/java/TypeNameExts.kt index aa5408e11..f6080b82f 100644 --- a/java/src/main/kotlin/io/spine/protodata/java/TypeNameExts.kt +++ b/java/src/main/kotlin/io/spine/protodata/java/TypeNameExts.kt @@ -55,7 +55,7 @@ public fun TypeName.javaFile(accordingTo: ProtoFileHeader): Path { } /** - * Obtains a fully qualified Java class name, generated for the Protobuf type with this name. + * Obtains a Java class name, generated for the Protobuf type with this name. * * @param accordingTo The header of the proto file in which the type is declared. */ @@ -68,7 +68,7 @@ public fun TypeName.javaClassName(accordingTo: ProtoFileHeader): ClassName = }) /** - * Obtains a fully qualified Java class name, generated for the Protobuf type with this name. + * Obtains a Java class name, generated for the Protobuf type with this name. * * @param typeSystem The type system to be used for obtaining the header for the proto * file in which this message type is declared. @@ -78,7 +78,7 @@ public fun TypeName.javaClassName(typeSystem: TypeSystem): ClassName = ?: error("Cannot find Java `${simply()}` for the Protobuf `${qualifiedName}`.") /** - * Finds a fully qualified Java class name, generated for the Protobuf type with this name. + * Finds a Java class name, generated for the Protobuf type with this name. * * @param typeSystem The type system to be used for obtaining the header for the proto * file in which this message type is declared. @@ -90,7 +90,7 @@ public fun TypeName.findJavaClassName(typeSystem: TypeSystem): ClassName? { } /** - * Obtains a fully qualified Java enum type name, generated for the Protobuf enum with this name. + * Obtains a Java enum type name, generated for the Protobuf enum with this name. */ public fun TypeName.javaEnumName(accordingTo: ProtoFileHeader): EnumName = composeJavaTypeName(accordingTo, {