Browse Source

Hope I've got this right this time.

Submitted by:	Sergey V. Udaltsov <Sergey.Udaltsov@artificial-life.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267756 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
6192249c40
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/FixCRLF.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/FixCRLF.java View File

@@ -179,7 +179,7 @@ public class FixCRLF extends MatchingTask {
* @param tlength specify the length of tab in spaces, has to be a power of 2
*/
public void setTablength(int tlength) throws BuildException {
if (tlength < 2 || (tlength & (tlength-1)) == 0) {
if (tlength < 2 || (tlength & (tlength-1)) != 0) {
throw new BuildException("tablength must be a positive power of 2",
location);
}


Loading…
Cancel
Save