Skip to content

Commit

Permalink
Generate class instead of object to avoid failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaygaba committed Jun 10, 2024
1 parent db922c4 commit dd3df4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ object ShowkaseModuleApiWriter {
CodeBlock.Builder()
.indent()
.addStatement(
"return (%T as %T).metadata()",
"return (%T() as %T).metadata()",
ClassName(
packageName,
"${MODULE_LEVEL_SHOWKASE_PROVIDER_CLASS_PREFIX}_${normalizedPackageName}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ internal fun writeFile(
fileBuilder
.addFileComment("This is an auto-generated file. Please do not edit/modify this file.")
.addType(
with(TypeSpec.objectBuilder(showkaseComponentsListClassName)) {
with(TypeSpec.classBuilder(showkaseComponentsListClassName)) {
showkaseRootCodegenAnnotation?.let {
addAnnotation(it)
}
Expand Down

0 comments on commit dd3df4e

Please sign in to comment.