Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit e3fecab

Browse files
author
Curtis William Arnold
committed
Bug 43849: Javadoc for Appender.getName implies return value will be unique and not null.
git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/trunk@685331 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7346e8f commit e3fecab

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/changes/changes.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<action action="fix" issue="44745">AsyncAppender fails on changing Throwable.</action>
5353
<action action="fix" issue="44899">Extra NPE error message when using missing appender class with DOMConfigurator.</action>
5454
<action action="fix" issue="44555">org.apache.log4j.varia.NullAppender lacks static accessor to static instance.</action>
55+
<action action="fix" issue="43849">Javadoc for Appender.getName implies that the return value will be unique and not null.</action>
5556
</release>
5657

5758
<release version="1.2.15" date="2007-08-24" description="SyslogAppender enhancements, NTEventLogAppender and Maven build.">

‎src/main/java/org/apache/log4j/Appender.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public interface Appender {
7474

7575

7676
/**
77-
Get the name of this appender. The name uniquely identifies the
78-
appender. */
77+
Get the name of this appender.
78+
@return name, may be null.*/
7979
public
8080
String getName();
8181

‎src/main/java/org/apache/log4j/AppenderSkeleton.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ Layout getLayout() {
189189

190190

191191
/**
192-
Returns the name of this FileAppender.
192+
Returns the name of this appender.
193+
@return name, may be null.
193194
*/
194195
public
195196
final

0 commit comments

Comments
 (0)