cvs commit: jakarta-oro/src/java/org/apache/oro/text/regex Perl5Compiler.java

[email protected]
Newsgroups gmane.comp.jakarta.oro.devel
Message-ID <[email protected]>
dfs         2002/10/14 09:39:06

  Modified:    src/java/org/apache/oro/text/regex Perl5Compiler.java
  Log:
  Added an else statement I left out when I added negative modifer support.
  It wasn't strictly necessary, but it avoids an unnecessary method call and
  will prevent introduction of bugs from changes to __setModifierFlag().
  
  Revision  Changes    Path
  1.15      +3 -2      jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Compiler.java
  
  Index: Perl5Compiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Compiler.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Perl5Compiler.java	14 Oct 2002 16:16:22 -0000	1.14
  +++ Perl5Compiler.java	14 Oct 2002 16:39:06 -0000	1.15
  @@ -1560,7 +1560,8 @@
   		modifiers.indexOf(value) != -1) {
   	    if(value == '-')
   	      modifierFlags = negFlags;
  -	    __setModifierFlag(modifierFlags, value);
  +	    else
  +	      __setModifierFlag(modifierFlags, value);
   	    value = __input._increment();
   	  }
   	  __modifierFlags[0] |= posFlags[0];
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.