You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2021/07/11 20:44:23 UTC
[logging-log4j2] 01/03: Fix compile warning
This is an automated email from the ASF dual-hosted git repository.
mattsicker pushed a commit to branch mean-bean-machine
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 64f8151e5605863eaeb97870b8824899824e5daf
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sat Jul 10 18:58:01 2021 -0500
Fix compile warning
---
.../apache/logging/log4j/plugins/name/AnnotatedElementNameProvider.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/name/AnnotatedElementNameProvider.java b/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/name/AnnotatedElementNameProvider.java
index 95e303a..2f7bda0 100644
--- a/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/name/AnnotatedElementNameProvider.java
+++ b/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/name/AnnotatedElementNameProvider.java
@@ -68,7 +68,7 @@ public interface AnnotatedElementNameProvider<A extends Annotation> {
if (methodName.startsWith("is")) {
return BeanUtils.decapitalize(methodName.substring(2));
}
- if (methodName.startsWith("set") | methodName.startsWith("get")) {
+ if (methodName.startsWith("set") || methodName.startsWith("get")) {
return BeanUtils.decapitalize(methodName.substring(3));
}
if (methodName.startsWith("with")) {