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

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
mdahm       2002/08/07 11:05:51

  Modified:    src/java/org/apache/bcel/generic InstructionComparator.java
  Log:
  Fixed to getTypecode
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-bcel/src/java/org/apache/bcel/generic/InstructionComparator.java
  
  Index: InstructionComparator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/src/java/org/apache/bcel/generic/InstructionComparator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InstructionComparator.java	7 Aug 2002 18:01:32 -0000	1.1
  +++ InstructionComparator.java	7 Aug 2002 18:05:51 -0000	1.2
  @@ -95,7 +95,7 @@
   	      return ((IndexedInstruction)i1).getIndex() == 
   		((IndexedInstruction)i2).getIndex();
   	    } else if(i1 instanceof NEWARRAY) {
  -	      return ((NEWARRAY)i1).type == ((NEWARRAY)i2).type;
  +	      return ((NEWARRAY)i1).getTypecode() == ((NEWARRAY)i2).getTypecode();
   	    }
   	  }
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.