fix(config-compiler-plugin): Use available method
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/jfmod Pipeline was successful Details
ci/woodpecker/tag/docs Pipeline was successful Details
ci/woodpecker/tag/jfmod Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-07-18 20:20:27 +02:00
parent d2c2af2049
commit 4157e444ac
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ public class ConfigProcessor extends AbstractProcessor2 {
private TypeName getTypeName(Supplier<Class<?>> annotationSource) {
try {
TypeName name = ClassName.get(annotationSource.get());
message.printWarning("Expected access to class on mirrored annotation to throw MirroredTypeException as specified in spec, but that didn't happen. This is unsupported");
message.printMessage(Diagnostic.Kind.WARNING, "Expected access to class on mirrored annotation to throw MirroredTypeException as specified in spec, but that didn't happen. This is unsupported");
return name;
} catch (MirroredTypeException e) {
return TypeName.get(e.getTypeMirror());