DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23096>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23096

NullAppender#getInstance() should be static

           Summary: NullAppender#getInstance() should be static
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Appender
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The documentation for org.apache.log4j.varia.NullAppender#getInstance() says

"Whenever you can, use this method to retreive an instance instead of 
instantiating a new one with new."

IMHO this means I should write

myAppender = NullAppender.getInstance()

However, since this method is not static, I have to write

myAppender = new NullAppender().getInstance()

which might not be what the author intended.


Solution: declare the method as a static method.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to