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:40:57 UTC

[05/50] [abbrv] logging-log4j2 git commit: Checkstyle: organized imports, LineLength, autoformatted

Checkstyle: organized imports, LineLength, autoformatted


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

Branch: refs/heads/LOG4J2-1136
Commit: b5d9f4b7caa71baa175273d80049da5162a8edfc
Parents: bfc83e9
Author: rpopma <rp...@apache.org>
Authored: Thu Sep 24 09:30:20 2015 +0200
Committer: Ralph Goers <rg...@nextiva.com>
Committed: Sun Sep 27 10:47:28 2015 -0700

----------------------------------------------------------------------
 .../org/apache/logging/log4j/status/StatusData.java   | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/b5d9f4b7/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusData.java
----------------------------------------------------------------------
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusData.java b/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusData.java
index be7dba7..65d24c8 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusData.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusData.java
@@ -16,8 +16,6 @@
  */
 package org.apache.logging.log4j.status;
 
-import static org.apache.logging.log4j.util.Chars.SPACE;
-
 import java.io.ByteArrayOutputStream;
 import java.io.PrintStream;
 import java.io.Serializable;
@@ -27,6 +25,8 @@ import java.util.Date;
 import org.apache.logging.log4j.Level;
 import org.apache.logging.log4j.message.Message;
 
+import static org.apache.logging.log4j.util.Chars.*;
+
 /**
  * The Status data.
  */
@@ -43,13 +43,15 @@ public class StatusData implements Serializable {
 
     /**
      * Creates the StatusData object.
+     * 
      * @param caller The method that created the event.
      * @param level The logging level.
      * @param msg The message String.
      * @param t The Error or Exception that occurred.
      * @param threadName The thread name
      */
-    public StatusData(final StackTraceElement caller, final Level level, final Message msg, final Throwable t, String threadName) {
+    public StatusData(final StackTraceElement caller, final Level level, final Message msg, final Throwable t,
+            String threadName) {
         this.timestamp = System.currentTimeMillis();
         this.caller = caller;
         this.level = level;
@@ -60,6 +62,7 @@ public class StatusData implements Serializable {
 
     /**
      * Returns the event's timestamp.
+     * 
      * @return The event's timestamp.
      */
     public long getTimestamp() {
@@ -68,6 +71,7 @@ public class StatusData implements Serializable {
 
     /**
      * Returns the StackTraceElement for the method that created the event.
+     * 
      * @return The StackTraceElement.
      */
     public StackTraceElement getStackTraceElement() {
@@ -76,6 +80,7 @@ public class StatusData implements Serializable {
 
     /**
      * Returns the logging level for the event.
+     * 
      * @return The logging level.
      */
     public Level getLevel() {
@@ -84,6 +89,7 @@ public class StatusData implements Serializable {
 
     /**
      * Returns the message associated with the event.
+     * 
      * @return The message associated with the event.
      */
     public Message getMessage() {
@@ -99,6 +105,7 @@ public class StatusData implements Serializable {
 
     /**
      * Returns the Throwable associated with the event.
+     * 
      * @return The Throwable associated with the event.
      */
     public Throwable getThrowable() {
@@ -107,6 +114,7 @@ public class StatusData implements Serializable {
 
     /**
      * Formats the StatusData for viewing.
+     * 
      * @return The formatted status data as a String.
      */
     public String getFormattedStatus() {