ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/util/regexp Jdk14RegexpRegexp.java
Date Tue, 08 Jan 2002 22:45:42 GMT
sbailliez    02/01/08 14:45:42

  Modified:    src/main/org/apache/tools/ant/util/regexp
                        Jdk14RegexpRegexp.java
  Log:
  Fix bad coding style.
  then/else parts of if statement and loop body must always been enclosed
  in a block statement.
  
  Revision  Changes    Path
  1.5       +2 -1      jakarta-ant/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java
  
  Index: Jdk14RegexpRegexp.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Jdk14RegexpRegexp.java	6 Nov 2001 13:55:54 -0000	1.4
  +++ Jdk14RegexpRegexp.java	8 Jan 2002 22:45:42 -0000	1.5
  @@ -75,8 +75,9 @@
       protected int getSubsOptions(int options)
       {
           int subsOptions = REPLACE_FIRST;
  -        if (RegexpUtil.hasFlag(options, REPLACE_ALL))
  +        if (RegexpUtil.hasFlag(options, REPLACE_ALL)) {
               subsOptions = REPLACE_ALL;
  +        }
           return subsOptions;
       }
   
  
  
  

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


Mime
View raw message