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 2016/08/15 02:08:22 UTC

logging-log4j2 git commit: Sort members.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 67d137d2d -> 5feca684b


Sort members.

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

Branch: refs/heads/master
Commit: 5feca684bd8b003fdeeb7a7d767b29d8debb2f63
Parents: 67d137d
Author: Gary Gregory <gg...@apache.org>
Authored: Sun Aug 14 19:08:21 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Sun Aug 14 19:08:21 2016 -0700

----------------------------------------------------------------------
 .../logging/log4j/spi/ThreadContextMap.java     | 56 ++++++++++----------
 1 file changed, 28 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/5feca684/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java b/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java
index 3235487..11c5ab5 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/spi/ThreadContextMap.java
@@ -24,34 +24,6 @@ import java.util.Map;
 public interface ThreadContextMap {
     
     /**
-     * Puts a context value (the <code>o</code> parameter) as identified
-     * with the <code>key</code> parameter into the current thread's
-     * context map.
-     *
-     * <p>If the current thread does not have a context map it is
-     * created as a side effect.</p>
-     * @param key The key name.
-     * @param value The key value.
-     */
-    void put(final String key, final String value);
-
-    /**
-     * Gets the context identified by the <code>key</code> parameter.
-     *
-     * <p>This method has no side effects.</p>
-     * @param key The key to locate.
-     * @return The value associated with the key or null.
-     */
-    String get(final String key);
-
-    /**
-     * Removes the the context identified by the <code>key</code>
-     * parameter.
-     * @param key The key to remove.
-     */
-    void remove(final String key);
-
-    /**
      * Clears the context.
      */
     void clear();
@@ -64,6 +36,15 @@ public interface ThreadContextMap {
     boolean containsKey(final String key);
 
     /**
+     * Gets the context identified by the <code>key</code> parameter.
+     *
+     * <p>This method has no side effects.</p>
+     * @param key The key to locate.
+     * @return The value associated with the key or null.
+     */
+    String get(final String key);
+
+    /**
      * Gets a non-{@code null} mutable copy of current thread's context Map.
      * @return a mutable copy of the context.
      */
@@ -80,4 +61,23 @@ public interface ThreadContextMap {
      * @return true if the Map is empty, false otherwise.
      */
     boolean isEmpty();
+
+    /**
+     * Puts a context value (the <code>o</code> parameter) as identified
+     * with the <code>key</code> parameter into the current thread's
+     * context map.
+     *
+     * <p>If the current thread does not have a context map it is
+     * created as a side effect.</p>
+     * @param key The key name.
+     * @param value The key value.
+     */
+    void put(final String key, final String value);
+
+    /**
+     * Removes the the context identified by the <code>key</code>
+     * parameter.
+     * @param key The key to remove.
+     */
+    void remove(final String key);
 }