Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
isidore committed Apr 28, 2021
2 parents db35adf + d54c25e commit 9ad9eea
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ add this to your pom file:
<dependency>
<groupId>com.approvaltests</groupId>
<artifactId>approvaltests</artifactId>
<version>11.1.0</version>
<version>11.2.1</version>
</dependency>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,27 @@

import java.io.File;

public class WhiteSpaceFileFilter implements java.io.FileFilter {
@Override
public boolean accept(File pathname) {
if (pathname.getName().equals(".") || pathname.getName().equals(".")) {
return false;
} else if (pathname.getName().equalsIgnoreCase("email")) {
return false;
} else if (pathname.isDirectory() || (pathname.getName().contains(".htm"))
|| (pathname.getName().contains(".txt"))) {
return true;
} else {
return false;
}
public class WhiteSpaceFileFilter implements java.io.FileFilter
{
@Override
public boolean accept(File pathname)
{
if (pathname.getName().equals(".") || pathname.getName().equals("."))
{
return false;
}
else if (pathname.getName().equalsIgnoreCase("email"))
{
return false;
}
else if (pathname.isDirectory() || (pathname.getName().contains(".htm"))
|| (pathname.getName().contains(".txt")))
{
return true;
}
else
{
return false;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,3 @@ private static void writeFile(File file, String text) throws IOException
}
}
}

0 comments on commit 9ad9eea

Please sign in to comment.