Skip to content

Commit 4566e86

Browse files
committed
Polishing
(cherry picked from commit 723c94e)
1 parent 1b84f97 commit 4566e86

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-2022 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.
@@ -48,14 +48,14 @@
4848
*/
4949
class PathMatchingResourcePatternResolverTests {
5050

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

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

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

6060

6161
private final PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
@@ -166,7 +166,7 @@ private List<String> getSubPathsIgnoringClassFiles(String pattern, String pathPr
166166
}
167167

168168
@Test
169-
void usingFileProtocolWithoutWildcardInPatternAndEndingInSlashStarStar() {
169+
void usingFileProtocolWithoutWildcardInPatternAndEndingInSlashStarStar() {
170170
Path testResourcesDir = Paths.get("src/test/resources").toAbsolutePath();
171171
String pattern = String.format("file:%s/scanned-resources/**", testResourcesDir);
172172
String pathPrefix = ".+?resources/";
@@ -294,8 +294,8 @@ private void assertExactSubPaths(String pattern, String pathPrefix, String... su
294294
}
295295

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

0 commit comments

Comments
 (0)