You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/03/24 17:16:34 UTC

[07/11] logging-log4j2 git commit: Prepare GC free

Prepare GC free


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

Branch: refs/heads/LOG4J2-1278-gc-free-logger
Commit: 062367394dcac65a86fe98b507359aab03ea1308
Parents: 6b8db31
Author: Mikael Ståldal <mi...@magine.com>
Authored: Wed Mar 23 15:26:15 2016 +0100
Committer: Mikael Ståldal <mi...@magine.com>
Committed: Wed Mar 23 15:26:15 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/logging/log4j/core/layout/GelfLayout.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/06236739/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java
index cb471a3..6d247c2 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/GelfLayout.java
@@ -221,7 +221,7 @@ public final class GelfLayout extends AbstractStringLayout {
     /**
      * Non-private to make it accessible from unit test.
      */
-    static String formatTimestamp(final long timeMillis) {
+    static CharSequence formatTimestamp(final long timeMillis) {
         return new BigDecimal(timeMillis).divide(TIME_DIVISOR).toPlainString();
     }