commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ep...@apache.org
Subject cvs commit: jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration JNDIConfiguration.java
Date Fri, 17 Oct 2003 08:11:22 GMT
epugh       2003/10/17 01:11:22

  Modified:    configuration/src/java/org/apache/commons/configuration
                        JNDIConfiguration.java
  Log:
  Fix PMD spotted error...
  
  Revision  Changes    Path
  1.11      +3 -2      jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration/JNDIConfiguration.java
  
  Index: JNDIConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configuration/JNDIConfiguration.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- JNDIConfiguration.java	12 Oct 2003 09:32:30 -0000	1.10
  +++ JNDIConfiguration.java	17 Oct 2003 08:11:22 -0000	1.11
  @@ -307,7 +307,8 @@
           key = StringUtils.replace(key, ".", "/");
           try
           {
  -            Object object = getContext().lookup(key);
  +        	// throws a NamingException if JNDI doesn't contain the key.
  +            getContext().lookup(key);
               return true;
           }
           catch (javax.naming.NamingException ne)
  
  
  

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


Mime
View raw message