From daabfeb77bbb825a6c3be7e051056229babd6945 Mon Sep 17 00:00:00 2001 From: Mahied Maruf Date: Wed, 29 Oct 2025 00:16:58 +0000 Subject: [PATCH 1/2] Fix `APContextWriter` generating bad Javadoc --- .../java/io/avaje/prism/internal/APContextWriter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prism-core/src/main/java/io/avaje/prism/internal/APContextWriter.java b/prism-core/src/main/java/io/avaje/prism/internal/APContextWriter.java index 4e6ec88..00c688e 100644 --- a/prism-core/src/main/java/io/avaje/prism/internal/APContextWriter.java +++ b/prism-core/src/main/java/io/avaje/prism/internal/APContextWriter.java @@ -210,8 +210,9 @@ public static void write(PrintWriter out, String packageName, boolean moduleRead + " }\n" + "\n" + " /**\n" - + " * Prints a note.\n" + + " * Prints a note at the location of the element.\n" + " *\n" + + " * @param e the element to use as a position hint\n" + " * @param msg the message, or an empty string if none\n" + " * @param args {@code String#format} arguments\n" + " */\n" @@ -220,9 +221,8 @@ public static void write(PrintWriter out, String packageName, boolean moduleRead + " }\n" + "\n" + " /**\n" - + " * Prints a note at the location of the element.\n" + + " * Prints a note.\n" + " *\n" - + " * @param e the element to use as a position hint\n" + " * @param msg the message, or an empty string if none\n" + " * @param args {@code String#format} arguments\n" + " */\n" @@ -332,7 +332,7 @@ public static void write(PrintWriter out, String packageName, boolean moduleRead + " *\n" + " * @param key the key of the processor option\n" + " * @return an Optional for the processor option, or null if none is available.\n" - + " * @see {@link ProcessingEnvironment#getOptions()}\n" + + " * @see ProcessingEnvironment#getOptions()\n" + " */\n" + " public static Optional getOption(String key) {\n" + " return Optional.ofNullable(processingEnv().getOptions().get(key));\n" From bfea1db6d3dac0f9db3beab358a6cd460df4f2bb Mon Sep 17 00:00:00 2001 From: Mahied Maruf Date: Wed, 29 Oct 2025 03:50:16 +0000 Subject: [PATCH 2/2] Fix typo/grammar, "Utility" in `APContext` Signed-off-by: Mahied Maruf --- .../src/main/java/io/avaje/prism/internal/APContextWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prism-core/src/main/java/io/avaje/prism/internal/APContextWriter.java b/prism-core/src/main/java/io/avaje/prism/internal/APContextWriter.java index 00c688e..5a1217b 100644 --- a/prism-core/src/main/java/io/avaje/prism/internal/APContextWriter.java +++ b/prism-core/src/main/java/io/avaje/prism/internal/APContextWriter.java @@ -62,7 +62,7 @@ public static void write(PrintWriter out, String packageName, boolean moduleRead + compilerImports() + "\n" + "/**\n" - + " * Utiliy Class that stores the {@link ProcessingEnvironment} and provides various helper methods\n" + + " * Utility class that stores the {@link ProcessingEnvironment} and provides various helper methods.\n" + " */\n" + "@Generated(\"avaje-prism-generator\")\n" + "public final class APContext {\n"