-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Error Prone warnings in log4j-api
#1961
Conversation
log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
Outdated
Show resolved
Hide resolved
log4j-api/src/main/java/org/apache/logging/log4j/message/DefaultFlowMessageFactory.java
Outdated
Show resolved
Hide resolved
log4j-api/src/main/java/org/apache/logging/log4j/message/MessageFormatMessage.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
log4j-api/src/main/java/org/apache/logging/log4j/message/ReusableMessageFactory.java
Show resolved
Hide resolved
log4j-api/src/main/java/org/apache/logging/log4j/util/LowLevelLogUtil.java
Show resolved
Hide resolved
log4j-api/src/main/java/org/apache/logging/log4j/util/PropertySource.java
Show resolved
Hide resolved
log4j-api/src/main/java/org/apache/logging/log4j/message/SimpleMessage.java
Show resolved
Hide resolved
d47d8e7
to
2719fb0
Compare
2719fb0
to
377d55c
Compare
I have refactored all Since |
377d55c
to
8e8f85d
Compare
log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMapFactory.java
Outdated
Show resolved
Hide resolved
log4j-api/src/main/java/org/apache/logging/log4j/util/Constants.java
Outdated
Show resolved
Hide resolved
log4j-api/src/main/java/org/apache/logging/log4j/util/ProcessIdUtil.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/impl/ContextDataInjectorFactory.java
Outdated
Show resolved
Hide resolved
63932f9
to
ab48da9
Compare
ab48da9
to
e74d630
Compare
Besides refactoring some bugs indicated by Error Prone, this PR also replaces BND Baseline package exclusions with more limited |
This suppresses or fixes most Error Prone warning in `log4j-api`. Only two dozens warnings are left, mainly in the [TypeParameterUnusedInFormals](https://errorprone.info/bugpattern/TypeParameterUnusedInFormals), which can not be removed for source compatibility reasons. Closes apache#1850.
e74d630
to
a19639e
Compare
This suppresses or fixes most Error Prone warning in
log4j-api
.Only two dozens warnings are left, mainly in the
TypeParameterUnusedInFormals, which can not be removed for source compatibility reasons.
Closes #1850.