Repository: logging-log4j2 Updated Branches: refs/heads/master aaaba79a6 -> 31c41c0c6
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/73191e1c Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/73191e1c Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/73191e1c Branch: refs/heads/master Commit: 73191e1ccfd35e444634d3150fdaad029f1e10e9 Parents: aaaba79 Author: Carter Kozak <c4kof...@gmail.com> Authored: Mon Feb 26 21:39:12 2018 -0800 Committer: rpopma <rpo...@apache.org> Committed: Tue Feb 27 19:01:23 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/73191e1c/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/73191e1c/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