Repository: logging-log4j2 Updated Branches: refs/heads/release-2.x 326d06319 -> a10da6d43
LOG4J2-2253 Update ParameterConsumer index type from short to int Originally ParameterVisitable was built for ReusableMessage which provides a "short getParameterCount()" method. Now that the interface isn't bound to ReusableMessage it might as well use integer. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/2e806597 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/2e806597 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/2e806597 Branch: refs/heads/release-2.x Commit: 2e80659771cc77365247bcfd49ae328def28690a Parents: 326d063 Author: Carter Kozak <c4kof...@gmail.com> Authored: Mon Feb 26 21:39:12 2018 -0800 Committer: rpopma <rpo...@apache.org> Committed: Tue Feb 27 18:57:57 2018 +0900 ---------------------------------------------------------------------- .../java/org/apache/logging/log4j/message/ParameterConsumer.java | 2 +- .../org/apache/logging/log4j/message/ReusableObjectMessage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/2e806597/log4j-api/src/main/java/org/apache/logging/log4j/message/ParameterConsumer.java ---------------------------------------------------------------------- diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/message/ParameterConsumer.java b/log4j-api/src/main/java/org/apache/logging/log4j/message/ParameterConsumer.java index ff8c148..8b81e1a 100644 --- a/log4j-api/src/main/java/org/apache/logging/log4j/message/ParameterConsumer.java +++ b/log4j-api/src/main/java/org/apache/logging/log4j/message/ParameterConsumer.java @@ -21,6 +21,6 @@ public interface ParameterConsumer<S> { * @param parameterIndex Index of the parameter * @param state */ - void accept(Object parameter, short parameterIndex, S state); + void accept(Object parameter, int parameterIndex, S state); } http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/2e806597/log4j-api/src/main/java/org/apache/logging/log4j/message/ReusableObjectMessage.java ---------------------------------------------------------------------- diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/message/ReusableObjectMessage.java b/log4j-api/src/main/java/org/apache/logging/log4j/message/ReusableObjectMessage.java index b973e5a..c272ab7 100644 --- a/log4j-api/src/main/java/org/apache/logging/log4j/message/ReusableObjectMessage.java +++ b/log4j-api/src/main/java/org/apache/logging/log4j/message/ReusableObjectMessage.java @@ -114,7 +114,7 @@ public class ReusableObjectMessage implements ReusableMessage, ParameterVisitabl @Override public <S> void forEachParameter(ParameterConsumer<S> action, S state) { - action.accept(obj, (short) 0, state); + action.accept(obj, 0, state); } @Override