Skip to content

Commit

Permalink
fix code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Jan 7, 2025
1 parent 1073e29 commit 544ba5f
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 @@ -96,7 +96,7 @@ protected void generateTopicConsumer(Module module, Topic data, String packageNa
dataBuilder.addAnnotation(AnnotationSpec.builder(xyz.block.ftl.Topic.class)
.addMember("name", "\"" + data.getName() + "\"")
.addMember("module", "\"" + module.getName() + "\"")
.addMember("partitions", String.valueOf(partitions))
.addMember("partitions=", String.valueOf(partitions))
.build());

JavaFile javaFile = JavaFile.builder(packageName, dataBuilder.build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected void generateTopicConsumer(Module module, Topic data, String packageNa
dataBuilder.addAnnotation(AnnotationSpec.builder(xyz.block.ftl.Topic.class)
.addMember("name=\"" + data.getName() + "\"")
.addMember("module=\"" + module.getName() + "\"")
.addMember("partitions", String.valueOf(partitions))
.addMember("partitions=" + String.valueOf(partitions))
.build());

FileSpec javaFile = FileSpec.builder(packageName, thisType)
Expand Down

0 comments on commit 544ba5f

Please sign in to comment.