You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ra...@apache.org on 2026/08/21 15:52:56 UTC
(logging-log4j2) branch port-3195-annotation-processor-setter-warning created (now 22db819748)
This is an automated email from the ASF dual-hosted git repository.
ramanathan1504 pushed a change to branch port-3195-annotation-processor-setter-warning
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
at 22db819748 Remove commented-out code and unnecessary checks in PluginProcessor
This branch includes the following new commits:
new 22db819748 Remove commented-out code and unnecessary checks in PluginProcessor
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(logging-log4j2) 01/01: Remove commented-out code and unnecessary checks in PluginProcessor
Posted by ra...@apache.org.
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 <ra...@gmail.com>
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(