Skip to content

Commit 06024f4

Browse files
committed
[FOLLOWUP][SPARK-32121][SHUFFLE][TEST] fix checkstyle
1 parent 8cd8bd1 commit 06024f4

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/ExternalShuffleBlockResolverSuite.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,23 +147,21 @@ public void jsonSerializationOfExecutorRegistration() throws IOException {
147147
@Test
148148
public void testNormalizeAndInternPathname() {
149149
assertPathsMatch("/foo", "bar", "baz",
150-
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
150+
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
151151
assertPathsMatch("//foo/", "bar/", "//baz",
152-
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
152+
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
153153
assertPathsMatch("foo", "bar", "baz///",
154-
"foo" + File.separator + "bar" + File.separator + "baz");
154+
"foo" + File.separator + "bar" + File.separator + "baz");
155155
assertPathsMatch("/foo/", "/bar//", "/baz",
156-
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
157-
assertPathsMatch("/", "", "",
158-
File.separator);
159-
assertPathsMatch("/", "/", "/",
160-
File.separator);
156+
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
157+
assertPathsMatch("/", "", "", File.separator);
158+
assertPathsMatch("/", "/", "/", File.separator);
161159
if (ExecutorDiskUtils.isWindows()) {
162160
assertPathsMatch("/foo\\/", "bar", "baz",
163-
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
161+
File.separator + "foo" + File.separator + "bar" + File.separator + "baz");
164162
} else {
165163
assertPathsMatch("/foo\\/", "bar", "baz",
166-
File.separator + "foo\\" + File.separator + "bar" + File.separator + "baz");
164+
File.separator + "foo\\" + File.separator + "bar" + File.separator + "baz");
167165
}
168166
}
169167

0 commit comments

Comments
 (0)