This is an automated email from the ASF dual-hosted git repository.

ramanathan1504 pushed a commit to branch 
port-3195-annotation-processor-setter-warning
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 22db819748bf0cae0ef78bb9c6cf951b0a44e5ee
Author: Ramanathan <[email protected]>
AuthorDate: Fri Aug 21 21:21:57 2026 +0530

    Remove commented-out code and unnecessary checks in PluginProcessor
---
 .../org/apache/logging/log4j/plugin/processor/PluginProcessor.java     | 3 ---
 1 file changed, 3 deletions(-)

diff --git 
a/log4j-plugin-processor/src/main/java/org/apache/logging/log4j/plugin/processor/PluginProcessor.java
 
b/log4j-plugin-processor/src/main/java/org/apache/logging/log4j/plugin/processor/PluginProcessor.java
index c6908b9159..bbfa5aea09 100644
--- 
a/log4j-plugin-processor/src/main/java/org/apache/logging/log4j/plugin/processor/PluginProcessor.java
+++ 
b/log4j-plugin-processor/src/main/java/org/apache/logging/log4j/plugin/processor/PluginProcessor.java
@@ -198,10 +198,8 @@ public class PluginProcessor extends AbstractProcessor {
             return;
         }
         final Element enclosingElement = element.getEnclosingElement();
-        // element is a field, its enclosing element is a type
         if (enclosingElement instanceof TypeElement) {
             final TypeElement typeElement = (TypeElement) enclosingElement;
-            // Check the siblings of the field for a matching setter
             for (final Element enclosedElement : 
typeElement.getEnclosedElements()) {
                 if (enclosedElement instanceof ExecutableElement) {
                     final ExecutableElement methodElement = 
(ExecutableElement) enclosedElement;
@@ -225,7 +223,6 @@ public class PluginProcessor extends AbstractProcessor {
                     }
                 }
             }
-            // No setter found: emit a compilation error
             processingEnv
                     .getMessager()
                     .printMessage(

Reply via email to