fix(config-compiler-plugin): Use available method
This commit is contained in:
parent
d2c2af2049
commit
4157e444ac
|
@ -204,7 +204,7 @@ public class ConfigProcessor extends AbstractProcessor2 {
|
||||||
private TypeName getTypeName(Supplier<Class<?>> annotationSource) {
|
private TypeName getTypeName(Supplier<Class<?>> annotationSource) {
|
||||||
try {
|
try {
|
||||||
TypeName name = ClassName.get(annotationSource.get());
|
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;
|
return name;
|
||||||
} catch (MirroredTypeException e) {
|
} catch (MirroredTypeException e) {
|
||||||
return TypeName.get(e.getTypeMirror());
|
return TypeName.get(e.getTypeMirror());
|
||||||
|
|
Loading…
Reference in New Issue