From 820aa77ee9c8cab7987539d4259df4666c3f50b9 Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Thu, 28 Nov 2024 14:48:25 +0100 Subject: [PATCH] make the NewConfig class and its methods public --- .../autoconfig/processor/AutoConfigProcessor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/implementation/autoconfig/processor/src/main/java/io/smallrye/faulttolerance/autoconfig/processor/AutoConfigProcessor.java b/implementation/autoconfig/processor/src/main/java/io/smallrye/faulttolerance/autoconfig/processor/AutoConfigProcessor.java index 4fc4887c..f3bce5bd 100644 --- a/implementation/autoconfig/processor/src/main/java/io/smallrye/faulttolerance/autoconfig/processor/AutoConfigProcessor.java +++ b/implementation/autoconfig/processor/src/main/java/io/smallrye/faulttolerance/autoconfig/processor/AutoConfigProcessor.java @@ -354,7 +354,7 @@ private void generateNewConfig(Set configAnnotations) throws IOExce JavaFile.builder(packageName, TypeSpec.classBuilder(mappingClassName) .addJavadoc("Automatically generated from all config annotations, do not modify.") - .addModifiers(Modifier.FINAL) + .addModifiers(Modifier.PUBLIC, Modifier.FINAL) .addField(FieldSpec.builder(TypeNames.HASHMAP_OF_STRING_TO_STRING, "MAP", Modifier.PRIVATE, Modifier.STATIC, Modifier.FINAL) .initializer("mapping()") @@ -365,13 +365,13 @@ private void generateNewConfig(Set configAnnotations) throws IOExce .addCode(generateMappingTable(configAnnotations)) .build()) .addMethod(MethodSpec.methodBuilder("get") - .addModifiers(Modifier.STATIC) + .addModifiers(Modifier.PUBLIC, Modifier.STATIC) .returns(TypeNames.STRING) .addParameter(TypeNames.CLASS_OF_ANNOTATION, "annotation") .addStatement("return MAP.get(annotation.getSimpleName())") .build()) .addMethod(MethodSpec.methodBuilder("get") - .addModifiers(Modifier.STATIC) + .addModifiers(Modifier.PUBLIC, Modifier.STATIC) .returns(TypeNames.STRING) .addParameter(TypeNames.CLASS_OF_ANNOTATION, "annotation") .addParameter(TypeNames.STRING, "member")