commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsi...@apache.org
Subject cvs commit: jakarta-commons/discovery/src/java/org/apache/commons/discovery/tools ClassUtils.java
Date Thu, 03 Oct 2002 22:31:52 GMT
rsitze      2002/10/03 15:31:52

  Modified:    discovery/src/java/org/apache/commons/discovery/tools
                        ClassUtils.java
  Log:
  unobfuscate
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-commons/discovery/src/java/org/apache/commons/discovery/tools/ClassUtils.java
  
  Index: ClassUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/discovery/src/java/org/apache/commons/discovery/tools/ClassUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassUtils.java	28 Aug 2002 02:49:50 -0000	1.1
  +++ ClassUtils.java	3 Oct 2002 22:31:52 -0000	1.2
  @@ -91,7 +91,7 @@
               packageName = clazzPackage.getName();
           } else {
               String clazzName = clazz.getName();
  -            packageName = new String(clazzName.toCharArray(), 0, clazzName.lastIndexOf('.'));
  +            packageName = clazzName.substring(0, clazzName.lastIndexOf('.'));
           }
           return packageName;
       }
  
  
  

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


Mime
View raw message