Skip to content

Commit b23eadd

Browse files
committed
a reformat code
1 parent 5013d2d commit b23eadd

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

approvaltests-util/src/main/java/com/spun/util/WhiteSpaceFileFilter.java

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@
22

33
import java.io.File;
44

5-
public class WhiteSpaceFileFilter implements java.io.FileFilter {
6-
@Override
7-
public boolean accept(File pathname) {
8-
if (pathname.getName().equals(".") || pathname.getName().equals(".")) {
9-
return false;
10-
} else if (pathname.getName().equalsIgnoreCase("email")) {
11-
return false;
12-
} else if (pathname.isDirectory() || (pathname.getName().contains(".htm"))
13-
|| (pathname.getName().contains(".txt"))) {
14-
return true;
15-
} else {
16-
return false;
17-
}
5+
public class WhiteSpaceFileFilter implements java.io.FileFilter
6+
{
7+
@Override
8+
public boolean accept(File pathname)
9+
{
10+
if (pathname.getName().equals(".") || pathname.getName().equals("."))
11+
{
12+
return false;
1813
}
14+
else if (pathname.getName().equalsIgnoreCase("email"))
15+
{
16+
return false;
17+
}
18+
else if (pathname.isDirectory() || (pathname.getName().contains(".htm"))
19+
|| (pathname.getName().contains(".txt")))
20+
{
21+
return true;
22+
}
23+
else
24+
{
25+
return false;
26+
}
27+
}
1928
}

approvaltests-util/src/main/java/com/spun/util/WhiteSpaceStripper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,3 @@ private static void writeFile(File file, String text) throws IOException
160160
}
161161
}
162162
}
163-

0 commit comments

Comments
 (0)