ppkarwasz commented on a change in pull request #753:
URL: https://github.com/apache/logging-log4j2/pull/753#discussion_r806306691
##########
File path:
log4j-core/src/main/java/org/apache/logging/log4j/core/filter/CompositeFilter.java
##########
@@ -62,9 +62,9 @@ public CompositeFilter addFilter(final Filter filter) {
if (filter instanceof CompositeFilter) {
final int size = this.filters.length + ((CompositeFilter)
filter).size();
final Filter[] copy = Arrays.copyOf(this.filters, size);
- final int index = this.filters.length;
+ int index = this.filters.length;
for (final Filter currentFilter : ((CompositeFilter)
filter).filters) {
- copy[index] = currentFilter;
+ copy[index++] = currentFilter;
Review comment:
Small bug fix in `log4j-core`. Probably does not merit its own PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]