You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2015/09/27 20:41:25 UTC
[33/50] [abbrv] logging-log4j2 git commit: Checkstyle: trailing spaces
Checkstyle: trailing spaces
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/69439366
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/69439366
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/69439366
Branch: refs/heads/LOG4J2-1136
Commit: 69439366fb9a873ded8f44ec92252be5f5ca4dcf
Parents: 6c8d97e
Author: rpopma <rp...@apache.org>
Authored: Thu Sep 24 11:44:05 2015 +0200
Committer: Ralph Goers <rg...@nextiva.com>
Committed: Sun Sep 27 10:47:30 2015 -0700
----------------------------------------------------------------------
.../logging/log4j/spi/AbstractLogger.java | 2 +-
.../log4j/spi/DefaultThreadContextMap.java | 20 ++++++++++----------
2 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/69439366/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java b/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
index 98bedc5..a86017f 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
@@ -68,7 +68,7 @@ public abstract class AbstractLogger implements ExtendedLogger, Serializable {
/**
* The default MessageFactory class.
*/
- public static final Class<? extends MessageFactory> DEFAULT_MESSAGE_FACTORY_CLASS =
+ public static final Class<? extends MessageFactory> DEFAULT_MESSAGE_FACTORY_CLASS =
ParameterizedMessageFactory.class;
private static final long serialVersionUID = 2L;
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/69439366/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java b/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
index 04db82f..33ab304 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
@@ -23,15 +23,15 @@ import java.util.Map;
import org.apache.logging.log4j.util.PropertiesUtil;
/**
- * The actual ThreadContext Map. A new ThreadContext Map is created each time it is updated and the Map stored
- * is always immutable. This means the Map can be passed to other threads without concern that it will be updated.
- * Since it is expected that the Map will be passed to many more log events than the number of keys it contains
- * the performance should be much better than if the Map was copied for each event.
+ * The actual ThreadContext Map. A new ThreadContext Map is created each time it is updated and the Map stored is always
+ * immutable. This means the Map can be passed to other threads without concern that it will be updated. Since it is
+ * expected that the Map will be passed to many more log events than the number of keys it contains the performance
+ * should be much better than if the Map was copied for each event.
*/
public class DefaultThreadContextMap implements ThreadContextMap {
- /**
- * Property name ({@value}) for selecting {@code InheritableThreadLocal} (value "true")
- * or plain {@code ThreadLocal} (value is not "true") in the implementation.
+ /**
+ * Property name ({@value} ) for selecting {@code InheritableThreadLocal} (value "true") or plain
+ * {@code ThreadLocal} (value is not "true") in the implementation.
*/
public static final String INHERITABLE_MAP = "isThreadContextMapInheritable";
@@ -42,7 +42,7 @@ public class DefaultThreadContextMap implements ThreadContextMap {
this.useMap = useMap;
this.localMap = createThreadLocalMap(useMap);
}
-
+
// LOG4J2-479: by default, use a plain ThreadLocal, only use InheritableThreadLocal if configured.
// (This method is package protected for JUnit tests.)
static ThreadLocal<Map<String, String>> createThreadLocalMap(final boolean isMapEnabled) {
@@ -53,7 +53,7 @@ public class DefaultThreadContextMap implements ThreadContextMap {
@Override
protected Map<String, String> childValue(final Map<String, String> parentValue) {
return parentValue != null && isMapEnabled //
- ? Collections.unmodifiableMap(new HashMap<>(parentValue)) //
+ ? Collections.unmodifiableMap(new HashMap<>(parentValue)) //
: null;
}
};
@@ -152,7 +152,7 @@ public class DefaultThreadContextMap implements ThreadContextMap {
}
final ThreadContextMap other = (ThreadContextMap) obj;
final Map<String, String> map = this.localMap.get();
- final Map<String, String> otherMap = other.getImmutableMapOrNull();
+ final Map<String, String> otherMap = other.getImmutableMapOrNull();
if (map == null) {
if (otherMap != null) {
return false;