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 2022/02/05 20:12:49 UTC
[logging-log4j2] branch release-2.x updated: Format class.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new e62cfda Format class.
e62cfda is described below
commit e62cfda349082ffb4a978a983260b7bd365d75a6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 5 15:12:46 2022 -0500
Format class.
---
.../java/org/apache/log4j/spi/LocationInfo.java | 34 +++++++++-------------
1 file changed, 14 insertions(+), 20 deletions(-)
diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/LocationInfo.java b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/LocationInfo.java
index 2102802..ef2c1bb 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/LocationInfo.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/LocationInfo.java
@@ -17,9 +17,9 @@
package org.apache.log4j.spi;
/**
- The internal representation of caller location information.
-
- @since 0.8.3
+ * The internal representation of caller location information.
+ *
+ * @since 0.8.3
*/
public class LocationInfo implements java.io.Serializable {
@@ -32,44 +32,38 @@ public class LocationInfo implements java.io.Serializable {
}
/**
- When location information is not available the constant
- <code>NA</code> is returned. Current value of this string
- constant is <b>?</b>. */
+ * When location information is not available the constant <code>NA</code> is returned. Current value of this string
+ * constant is <b>?</b>.
+ */
public final static String NA = "?";
static final long serialVersionUID = -1325822038990805636L;
-
/**
- Return the fully qualified class name of the caller making the
- logging request.
+ * Return the fully qualified class name of the caller making the logging request.
*/
- public
- String getClassName() {
+ public String getClassName() {
return element.getClassName();
}
/**
- Return the file name of the caller.
+ * Return the file name of the caller.
*/
- public
- String getFileName() {
+ public String getFileName() {
return element.getFileName();
}
/**
- Returns the line number of the caller.
+ * Returns the line number of the caller.
*/
- public
- String getLineNumber() {
+ public String getLineNumber() {
return Integer.toString(element.getLineNumber());
}
/**
- Returns the method name of the caller.
+ * Returns the method name of the caller.
*/
- public
- String getMethodName() {
+ public String getMethodName() {
return element.getMethodName();
}
}