Author: ggregory
Date: Fri Sep 28 19:19:22 2012
New Revision: 1391609
URL: http://svn.apache.org/viewvc?rev=1391609&view=rev
Log:
Remove "this." in toString() to match style of the class.
Modified:
logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Logger.java
Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Logger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Logger.java?rev=1391609&r1=1391608&r2=1391609&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Logger.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Logger.java
Fri Sep 28 19:19:22 2012
@@ -347,11 +347,11 @@ public class Logger extends AbstractLogg
* Returns a Stirng representation of this instance in the form {@code "name:level[ in
context_name]"}.
*/
public String toString() {
- final String nameLevel = this.name + ":" + this.getLevel();
+ final String nameLevel = name + ":" + getLevel();
if (context == null) {
return nameLevel;
}
- final String contextName = this.context.getName();
+ final String contextName = context.getName();
return contextName == null ? nameLevel : nameLevel + " in " + contextName;
}
}
|