cziegeler    01/07/12 07:47:18

  Modified:    src/org/apache/cocoon/util Tag: cocoon_20_branch
                        ClassUtils.java
  Log:
  Fixed the which method
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.2   +3 -4      xml-cocoon2/src/org/apache/cocoon/util/ClassUtils.java
  
  Index: ClassUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/util/ClassUtils.java,v
  retrieving revision 1.7.2.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- ClassUtils.java   2001/07/05 21:18:53     1.7.2.1
  +++ ClassUtils.java   2001/07/12 14:47:13     1.7.2.2
  @@ -18,7 +18,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Ricardo Rocha</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.7.2.1 $ $Date: 2001/07/05 21:18:53 $
  + * @version CVS $Revision: 1.7.2.2 $ $Date: 2001/07/12 14:47:13 $
    */
   public class ClassUtils {
   
  @@ -131,9 +131,9 @@
        */
        public static String which(String className) {
           String path = null;
  -        String classPath = "/" + className;
  +        String classPath = className;
   
  -        if (classPath.startsWith("//")) {
  +        if (classPath.startsWith("/")) {
               classPath = className.substring(1);
           }
   
  @@ -149,7 +149,6 @@
               }
           } catch (Exception e) {
           }
  -
           return path;
       }
   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to