Skip to content

Commit c9b8bda

Browse files
committed
revert @GeneratedClient annotation
1 parent e105d48 commit c9b8bda

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/main/kotlin/com/cjbooms/fabrikt/generators/client/SpringHttpInterfaceGenerator.kt

+1-18
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class SpringHttpInterfaceGenerator(
5555
}
5656

5757
val clientType = TypeSpec.interfaceBuilder(simpleClientName(resourceName))
58-
.addAnnotation(generatedAnnotationSpec())
5958
.addAnnotation(AnnotationSpec.builder(Suppress::class).addMember("%S", "unused").build())
6059
.addFunctions(funcSpecs)
6160
.build()
@@ -253,21 +252,5 @@ class SpringHttpInterfaceGenerator(
253252
}
254253
}
255254

256-
override fun generateLibrary(options: Set<ClientCodeGenOptionType>): Collection<GeneratedFile> = setOf(
257-
generatedAnnotationFile()
258-
)
259-
260-
private fun generatedAnnotationFile(): SimpleFile {
261-
val destFile = srcPath.resolve(CodeGenerationUtils.packageToPath(packages.client))
262-
.resolve("GeneratedClient.kt")
263-
val annotationTypeSpec = TypeSpec.annotationBuilder(
264-
ClassName(packages.client, "GeneratedClient")
265-
).build()
266-
val fileSpec = FileSpec.builder(packages.client, "GeneratedClient").addType(annotationTypeSpec).build()
267-
return SimpleFile(destFile, fileSpec.toString())
268-
}
269-
270-
private fun generatedAnnotationSpec(): AnnotationSpec = AnnotationSpec.builder(
271-
ClassName(packages.client, "GeneratedClient")
272-
).build()
255+
override fun generateLibrary(options: Set<ClientCodeGenOptionType>): Collection<GeneratedFile> = setOf()
273256
}

0 commit comments

Comments
 (0)