You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2014/08/28 05:09:57 UTC
svn commit: r1621029 -
/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
Author: mattsicker
Date: Thu Aug 28 03:09:56 2014
New Revision: 1621029
URL: http://svn.apache.org/r1621029
Log:
Remove redundant javadocs. All docs in this class were copied directly from parent class which will be automatically generated by javadoc.
Modified:
logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java?rev=1621029&r1=1621028&r2=1621029&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java (original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java Thu Aug 28 03:09:56 2014
@@ -62,16 +62,6 @@ public class DefaultThreadContextMap imp
return new ThreadLocal<Map<String, String>>();
}
- /**
- * Put a context value (the <code>o</code> parameter) as identified
- * with the <code>key</code> parameter into the current thread's
- * context map.
- * <p/>
- * <p>If the current thread does not have a context map it is
- * created as a side effect.
- * @param key The key name.
- * @param value The key value.
- */
@Override
public void put(final String key, final String value) {
if (!useMap) {
@@ -83,24 +73,12 @@ public class DefaultThreadContextMap imp
localMap.set(Collections.unmodifiableMap(map));
}
- /**
- * Get the context identified by the <code>key</code> parameter.
- * <p/>
- * <p>This method has no side effects.
- * @param key The key to locate.
- * @return The value associated with the key or null.
- */
@Override
public String get(final String key) {
final Map<String, String> map = localMap.get();
return map == null ? null : map.get(key);
}
- /**
- * Remove the the context identified by the <code>key</code>
- * parameter.
- * @param key The key to remove.
- */
@Override
public void remove(final String key) {
final Map<String, String> map = localMap.get();
@@ -111,48 +89,28 @@ public class DefaultThreadContextMap imp
}
}
- /**
- * Clear the context.
- */
@Override
public void clear() {
localMap.remove();
}
- /**
- * Determine if the key is in the context.
- * @param key The key to locate.
- * @return True if the key is in the context, false otherwise.
- */
@Override
public boolean containsKey(final String key) {
final Map<String, String> map = localMap.get();
return map != null && map.containsKey(key);
}
- /**
- * Returns a non-{@code null} mutable copy of the ThreadContext Map.
- * @return a non-{@code null} mutable copy of the context.
- */
@Override
public Map<String, String> getCopy() {
final Map<String, String> map = localMap.get();
return map == null ? new HashMap<String, String>() : new HashMap<String, String>(map);
}
- /**
- * Returns either {@code null} or an immutable view of the context Map.
- * @return the Context Map.
- */
@Override
public Map<String, String> getImmutableMapOrNull() {
return localMap.get();
}
- /**
- * Returns true if the Map is empty.
- * @return true if the Map is empty, false otherwise.
- */
@Override
public boolean isEmpty() {
final Map<String, String> map = localMap.get();