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

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
mdahm       02/04/10 00:40:59

  Modified:    src/java/org/apache/bcel/generic InstructionFactory.java
  Log:
  rather return instruction
  
  Revision  Changes    Path
  1.4       +3 -2      jakarta-bcel/src/java/org/apache/bcel/generic/InstructionFactory.java
  
  Index: InstructionFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/generic/InstructionFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InstructionFactory.java	12 Mar 2002 09:24:01 -0000	1.3
  +++ InstructionFactory.java	10 Apr 2002 07:40:59 -0000	1.4
  @@ -61,7 +61,7 @@
    * byte code generating backend of a compiler. You can subclass it to
    * add your own create methods.
    *
  - * @version $Id: InstructionFactory.java,v 1.3 2002/03/12 09:24:01 mdahm Exp $
  + * @version $Id: InstructionFactory.java,v 1.4 2002/04/10 07:40:59 mdahm Exp $
    * @author <A HREF="mailto:[email protected]">M. Dahm</A>
    * @see Constants
    */
  @@ -534,8 +534,9 @@
     }
   
     /** Create new array of given size and type.
  +   * @return an instruction that creates the corresponding array at runtime, i.e. is an AllocationInstruction
      */
  -  public AllocationInstruction createNewArray(Type t, short dim) {
  +  public Instruction createNewArray(Type t, short dim) {
       if(dim == 1) {
         if(t instanceof ObjectType)
   	return new ANEWARRAY(cp.addClass((ObjectType)t));
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.