Skip to content

Commit a3647a8

Browse files
committed
Polishing
(cherry picked from commit 723c94e)
1 parent 5c8d9cd commit a3647a8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spring-core/src/test/java/org/springframework/core/io/support/PathMatchingResourcePatternResolverTests.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,14 +51,14 @@
5151
*/
5252
class PathMatchingResourcePatternResolverTests {
5353

54-
private static final String[] CLASSES_IN_CORE_IO_SUPPORT = { "EncodedResource.class",
54+
private static final String[] CLASSES_IN_CORE_IO_SUPPORT = {"EncodedResource.class",
5555
"LocalizedResourceHelper.class", "PathMatchingResourcePatternResolver.class", "PropertiesLoaderSupport.class",
5656
"PropertiesLoaderUtils.class", "ResourceArrayPropertyEditor.class", "ResourcePatternResolver.class",
57-
"ResourcePatternUtils.class", "SpringFactoriesLoader.class" };
57+
"ResourcePatternUtils.class", "SpringFactoriesLoader.class"};
5858

59-
private static final String[] TEST_CLASSES_IN_CORE_IO_SUPPORT = { "PathMatchingResourcePatternResolverTests.class" };
59+
private static final String[] TEST_CLASSES_IN_CORE_IO_SUPPORT = {"PathMatchingResourcePatternResolverTests.class"};
6060

61-
private static final String[] CLASSES_IN_REACTOR_UTIL_ANNOTATION = { "NonNull.class", "NonNullApi.class", "Nullable.class" };
61+
private static final String[] CLASSES_IN_REACTOR_UTIL_ANNOTATION = {"NonNull.class", "NonNullApi.class", "Nullable.class"};
6262

6363

6464
private PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
@@ -200,7 +200,7 @@ private List<String> getSubPathsIgnoringClassFilesEtc(String pattern, String pat
200200
}
201201

202202
@Test
203-
void usingFileProtocolWithoutWildcardInPatternAndEndingInSlashStarStar() {
203+
void usingFileProtocolWithoutWildcardInPatternAndEndingInSlashStarStar() {
204204
Path testResourcesDir = Paths.get("src/test/resources").toAbsolutePath();
205205
String pattern = String.format("file:%s/scanned-resources/**", testResourcesDir);
206206
String pathPrefix = ".+?resources/";
@@ -329,8 +329,8 @@ private void assertExactSubPaths(String pattern, String pathPrefix, String... su
329329
}
330330

331331
private String getPath(Resource resource) {
332-
// Tests fail if we use resouce.getURL().getPath(). They would also fail on Mac OS when
333-
// using resouce.getURI().getPath() if the resource paths are not Unicode normalized.
332+
// Tests fail if we use resource.getURL().getPath(). They would also fail on macOS when
333+
// using resource.getURI().getPath() if the resource paths are not Unicode normalized.
334334
//
335335
// On the JVM, all tests should pass when using resouce.getFile().getPath(); however,
336336
// we use FileSystemResource#getPath since this test class is sometimes run within a

0 commit comments

Comments
 (0)