You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2018/01/05 15:58:03 UTC

logging-log4j2 git commit: [LOG4J2-2177] Replace use of deprecated Core API org.apache.logging.log4j.core.impl.Log4jLogEvent.Builder.setContextMap(Map). Fix exception message.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 882a00e71 -> bd9074fe6


[LOG4J2-2177] Replace use of deprecated Core API
org.apache.logging.log4j.core.impl.Log4jLogEvent.Builder.setContextMap(Map<String,
String>). Fix exception message.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/bd9074fe
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/bd9074fe
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/bd9074fe

Branch: refs/heads/master
Commit: bd9074fe6607adae5eb0085f3a92ffef5c01d71e
Parents: 882a00e
Author: Gary Gregory <gg...@apache.org>
Authored: Fri Jan 5 08:57:58 2018 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Fri Jan 5 08:57:58 2018 -0700

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/util/SortedArrayStringMap.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/bd9074fe/log4j-api/src/main/java/org/apache/logging/log4j/util/SortedArrayStringMap.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/SortedArrayStringMap.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/SortedArrayStringMap.java
index 05739f2..6d3eadb 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/SortedArrayStringMap.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/SortedArrayStringMap.java
@@ -139,7 +139,7 @@ public class SortedArrayStringMap implements IndexedStringMap {
 
     public SortedArrayStringMap(final int initialCapacity) {
         if (initialCapacity < 0) {
-            throw new IllegalArgumentException("Initial capacity must be at least one but was " + initialCapacity);
+            throw new IllegalArgumentException("Initial capacity must be at least zero but was " + initialCapacity);
         }
         threshold = ceilingNextPowerOfTwo(initialCapacity == 0 ? 1 : initialCapacity);
     }