diff --git a/kotlin-code-generation/src/main/kotlin/poet/AnnotationSpecBuilder.kt b/kotlin-code-generation/src/main/kotlin/poet/AnnotationSpecBuilder.kt index 69f36e7..cf2de7c 100644 --- a/kotlin-code-generation/src/main/kotlin/poet/AnnotationSpecBuilder.kt +++ b/kotlin-code-generation/src/main/kotlin/poet/AnnotationSpecBuilder.kt @@ -13,12 +13,21 @@ class AnnotationSpecBuilder( AnnotationSpecSupplier, PoetTaggableBuilder { companion object { - fun AnnotationSpec.Builder.wrap() = AnnotationSpecBuilder(this) + internal fun AnnotationSpec.Builder.wrap() = AnnotationSpecBuilder(this) + /** + * Creates new builder. + */ fun builder(type: ClassName): AnnotationSpecBuilder = AnnotationSpec.builder(type).wrap() + /** + * Creates new builder. + */ fun builder(type: ParameterizedTypeName): AnnotationSpecBuilder = AnnotationSpec.builder(type).wrap() + /** + * Creates new builder. + */ fun builder(type: KClass): AnnotationSpecBuilder = builder(type.asClassName()) }