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 2014/09/05 07:59:13 UTC
[2/3] git commit: Sort methods in AB order.
Sort methods in AB order.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/9cc0c612
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/9cc0c612
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/9cc0c612
Branch: refs/heads/master
Commit: 9cc0c612b9324229aa14766103d474e9bd9089f1
Parents: 8fdcf7b
Author: Gary Gregory <ga...@gmail.com>
Authored: Fri Sep 5 01:57:04 2014 -0400
Committer: Gary Gregory <ga...@gmail.com>
Committed: Fri Sep 5 01:57:04 2014 -0400
----------------------------------------------------------------------
.../log4j/core/layout/AbstractLayout.java | 38 ++++++++++----------
1 file changed, 19 insertions(+), 19 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9cc0c612/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractLayout.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractLayout.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractLayout.java
index e39ce3f..4b560fa 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractLayout.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractLayout.java
@@ -31,20 +31,6 @@ import org.apache.logging.log4j.status.StatusLogger;
public abstract class AbstractLayout<T extends Serializable> implements Layout<T> {
/**
- * Constructs a layout with an optional header and footer.
- *
- * @param header
- * The header to include when the stream is opened. May be null.
- * @param footer
- * The footer to add when the stream is closed. May be null.
- */
- public AbstractLayout(byte[] header, byte[] footer) {
- super();
- this.header = header;
- this.footer = footer;
- }
-
- /**
* Allow subclasses access to the status logger without creating another instance.
*/
protected static final Logger LOGGER = StatusLogger.getLogger();
@@ -60,13 +46,17 @@ public abstract class AbstractLayout<T extends Serializable> implements Layout<T
protected final byte[] footer;
/**
- * Returns the header, if one is available.
+ * Constructs a layout with an optional header and footer.
*
- * @return A byte array containing the header.
+ * @param header
+ * The header to include when the stream is opened. May be null.
+ * @param footer
+ * The footer to add when the stream is closed. May be null.
*/
- @Override
- public byte[] getHeader() {
- return header;
+ public AbstractLayout(byte[] header, byte[] footer) {
+ super();
+ this.header = header;
+ this.footer = footer;
}
/**
@@ -78,4 +68,14 @@ public abstract class AbstractLayout<T extends Serializable> implements Layout<T
public byte[] getFooter() {
return footer;
}
+
+ /**
+ * Returns the header, if one is available.
+ *
+ * @return A byte array containing the header.
+ */
+ @Override
+ public byte[] getHeader() {
+ return header;
+ }
}