cvs commit: jakarta-bcel/src/java/org/apache/bcel/generic Type.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
mdahm       2002/06/05 04:06:53

  Modified:    src/java/org/apache/bcel/generic Type.java
  Log:
  Convert class to type
  
  Revision  Changes    Path
  1.4       +6 -2      jakarta-bcel/src/java/org/apache/bcel/generic/Type.java
  
  Index: Type.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/generic/Type.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Type.java	5 Jun 2002 11:05:37 -0000	1.3
  +++ Type.java	5 Jun 2002 11:06:53 -0000	1.4
  @@ -63,7 +63,7 @@
    * Abstract super class for all possible java types, namely basic types
    * such as int, object types like String and array types, e.g. int[]
    *
  - * @version $Id: Type.java,v 1.3 2002/06/05 11:05:37 mdahm Exp $
  + * @version $Id: Type.java,v 1.4 2002/06/05 11:06:53 mdahm Exp $
    * @author  <A HREF="mailto:[email protected]">M. Dahm</A>
    */
   public abstract class Type {
  @@ -230,7 +230,11 @@
       return types;
     }
   
  -  public static Type getType(Class cl) {
  +  /** Convert runtime java.lang.Class to BCEL Type object.
  +   * @param cl Java class
  +   * @return corresponding Type object
  +   */
  +  public static Type getType(java.lang.Class cl) {
       if(cl == null) {
         throw new IllegalArgumentException("Class must not be null");
       }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.