logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/spi ComponentBase.java
Date Thu, 06 Jan 2005 22:38:35 GMT
ceki        2005/01/06 14:38:35

  Modified:    src/java/org/apache/log4j/spi ComponentBase.java
  Log:
  same but shorter
  
  Revision  Changes    Path
  1.4       +2 -4      logging-log4j/src/java/org/apache/log4j/spi/ComponentBase.java
  
  Index: ComponentBase.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/spi/ComponentBase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ComponentBase.java	6 Jan 2005 22:20:14 -0000	1.3
  +++ ComponentBase.java	6 Jan 2005 22:38:35 -0000	1.4
  @@ -28,11 +28,9 @@
     public void setLoggerRepository(LoggerRepository repository) {
       if(this.repository == null) {
         this.repository = repository;
  -    } else if(this.repository == repository) {
  -      // Nothing to do. Someone is trying to set the repository once again.
  -    } else { 
  +    } else if(this.repository != repository) {
         throw new IllegalStateException("Repository has been already set");
  -    }
  +    } 
     }
     
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message