We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebf995a commit c20b22cCopy full SHA for c20b22c
processor-kotlin/src/main/kotlin/testaccessors/internal/AccessorWriter.kt
@@ -37,7 +37,9 @@ internal class AccessorWriter(
37
val location = extractLocation(enclosingClassElement.enclosingElement) +
38
enclosingClassElement.simpleName.toString()
39
val fileAndObjectName = nameForGeneratedClassFrom(
40
- ClassName(location[0], location[1], *location.sliceArray(2..location.lastIndex)).simpleNames)
+ ClassName(location[0], location[1], *location.sliceArray(2..location.lastIndex)).simpleNames).let {
41
+ it.substringAfterLast('.', it)
42
+ }
43
val fileSpecBuilder = FileSpec.builder(
44
elementUtils.getPackageOf(enclosingClassElement).qualifiedName.toString(), fileAndObjectName)
45
.indent(" ")
0 commit comments