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/helpers JNDIUtil.java
Date Fri, 10 Sep 2004 14:57:45 GMT
ceki        2004/09/10 07:57:45

  Modified:    src/java/org/apache/log4j/helpers JNDIUtil.java
  Log:
  Japoly induced changes
  
  Revision  Changes    Path
  1.2       +19 -12    logging-log4j/src/java/org/apache/log4j/helpers/JNDIUtil.java
  
  Index: JNDIUtil.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/helpers/JNDIUtil.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JNDIUtil.java	30 Mar 2004 10:45:21 -0000	1.1
  +++ JNDIUtil.java	10 Sep 2004 14:57:45 -0000	1.2
  @@ -1,30 +1,37 @@
   /*
  - * Created on Mar 28, 2004
  + * Copyright 1999,2004 The Apache Software Foundation.
    *
  - * To change the template for this generated file go to
  - * Window>Preferences>Java>Code Generation>Code and Comments
  + * Licensed under the Apache License, Version 2.0 (the "License");
  + * you may not use this file except in compliance with the License.
  + * You may obtain a copy of the License at
  + *
  + *      http://www.apache.org/licenses/LICENSE-2.0
  + *
  + * Unless required by applicable law or agreed to in writing, software
  + * distributed under the License is distributed on an "AS IS" BASIS,
  + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  + * See the License for the specific language governing permissions and
  + * limitations under the License.
    */
  +
   package org.apache.log4j.helpers;
   
   import javax.naming.Context;
   import javax.naming.InitialContext;
   import javax.naming.NamingException;
   
  +
   /**
  - * @author ceki
    *
  - * To change the template for this generated type comment go to
  - * Window>Preferences>Java>Code Generation>Code and Comments
  + * @author Ceki Gulcu
    */
   public class JNDIUtil {
  -  
  -  
  -  static public Context getInitialContext() throws NamingException {  
  +  public static Context getInitialContext() throws NamingException {
       return new InitialContext();
     }
  -  
  -  static public String lookup(Context ctx, String name) {
  -    if(ctx == null) {
  +
  +  public static String lookup(Context ctx, String name) {
  +    if (ctx == null) {
         return null;
       }
       try {
  
  
  

---------------------------------------------------------------------
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