avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: avalon-logkit/src/java/org/apache/log Hierarchy.java
Date Tue, 04 Mar 2003 14:58:59 GMT
nicolaken    2003/03/04 06:58:58

  Modified:    src/java/org/apache/log Hierarchy.java
  Log:
  Reverting to version 1.28, before the changes that have been vetoed
  by Berin and after having asked the one responsible for the changes on
  avalon-dev.
  
  Thread: http://marc.theaimsgroup.com/?t=104647864800003&r=1&w=2
  
  Revision  Changes    Path
  1.32      +4 -24     avalon-logkit/src/java/org/apache/log/Hierarchy.java
  
  Index: Hierarchy.java
  ===================================================================
  RCS file: /home/cvs/avalon-logkit/src/java/org/apache/log/Hierarchy.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- Hierarchy.java	1 Mar 2003 07:28:13 -0000	1.31
  +++ Hierarchy.java	4 Mar 2003 14:58:58 -0000	1.32
  @@ -196,9 +196,7 @@
   
       /**
        * Set the LoggerListener associated with hierarchy.  This is a
  -     * unicast listener, so only one LoggerListener is allowed. Note that
  -     * multiple listeners are not supported so an alternative is to use
  -     * setLoggerListener(null)
  +     * unicast listener, so only one LoggerListener is allowed.
        *
        * @param loggerListener the LoggerListener
        *
  @@ -207,10 +205,7 @@
        */
       public synchronized void addLoggerListener( final LoggerListener loggerListener )
       {
  -        if ( null == loggerListener )
  -        {
  -            throw new NullPointerException( "loggerListener" );
  -        }
  +        if ( null == loggerListener ) throw new NullPointerException( "loggerListener"
);
   
           if ( null == m_loggerListener )
           {
  @@ -224,33 +219,18 @@
   
       /**
        * Remove the LoggerListener associated with hierarchy.  Perform this
  -     * step before adding a new one if you want to change it. Note that
  -     * multiple listeners are not supported so an alternative is to use
  -     * setLoggerListener(null)
  +     * step before adding a new one if you want to change it.
        *
        * @param loggerListener the LoggerListener
        */
       public synchronized void removeLoggerListener( final LoggerListener loggerListener
)
       {
  -        if ( null == loggerListener )
  -        {
  -            throw new NullPointerException( "loggerListener" );
  -        }
  +        if ( null == loggerListener ) throw new NullPointerException( "loggerListener"
);
   
           if ( null != m_loggerListener && m_loggerListener == loggerListener );
           {
               m_loggerListener = null;
           }
  -    }
  -
  -    /**
  -     * Set the LoggerListener associated with hierarchy.
  -     *
  -     * @param loggerListener the LoggerListener
  -     */
  -    public synchronized void setLoggerListener( final LoggerListener loggerListener )
  -    {
  -        m_loggerListener = loggerListener;
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message