From fe2ca189558411b46140cb8531306ef071c0a5e0 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 15 May 2021 08:53:34 -0400 Subject: [PATCH] that explains it --- .../annotationprocessor/ApiAnnotationProcessor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/annotation-processor/src/main/java/com/velocitypowered/annotationprocessor/ApiAnnotationProcessor.java b/annotation-processor/src/main/java/com/velocitypowered/annotationprocessor/ApiAnnotationProcessor.java index 24b295322..f1d6be68f 100644 --- a/annotation-processor/src/main/java/com/velocitypowered/annotationprocessor/ApiAnnotationProcessor.java +++ b/annotation-processor/src/main/java/com/velocitypowered/annotationprocessor/ApiAnnotationProcessor.java @@ -104,7 +104,9 @@ public class ApiAnnotationProcessor extends AbstractProcessor { "method must have an Event as its first parameter", method); } } - } else if (ProcessorUtils.contains(annotations, Plugin.class)) { + } + + if (ProcessorUtils.contains(annotations, Plugin.class)) { for (Element element : roundEnv.getElementsAnnotatedWith(Plugin.class)) { if (element.getKind() != ElementKind.CLASS) { processingEnv.getMessager() @@ -145,7 +147,7 @@ public class ApiAnnotationProcessor extends AbstractProcessor { new Gson().toJson(description, writer); } processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE, - "Wrote velocity-plugin.json to " + object.toUri()); + "Wrote velocity-plugin.json to " + object.toUri().toString()); pluginClassFound = qualifiedName.toString(); } catch (IOException e) { processingEnv.getMessager()