Skip to content

Commit 29a9016

Browse files
committed
Merge branch '5.3.x'
2 parents f07e7ab + 7b95c92 commit 29a9016

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

spring-core/src/main/java/org/springframework/core/io/AbstractFileResolvingResource.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -181,8 +181,7 @@ protected File getFileForLastModifiedCheck() throws IOException {
181181
}
182182

183183
/**
184-
* This implementation returns a File reference for the given URI-identified
185-
* resource, provided that it refers to a file in the file system.
184+
* Determine whether the given {@link URI} represents a file in a file system.
186185
* @since 5.0
187186
* @see #getFile(URI)
188187
*/

spring-core/src/main/java/org/springframework/core/io/AbstractResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public abstract class AbstractResource implements Resource {
5050
/**
5151
* This implementation checks whether a File can be opened,
5252
* falling back to whether an InputStream can be opened.
53-
* This will cover both directories and content resources.
53+
* <p>This will cover both directories and content resources.
5454
*/
5555
@Override
5656
public boolean exists() {

spring-core/src/main/java/org/springframework/core/io/Resource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ default boolean isOpen() {
8686

8787
/**
8888
* Determine whether this resource represents a file in a file system.
89-
* A value of {@code true} strongly suggests (but does not guarantee)
89+
* <p>A value of {@code true} strongly suggests (but does not guarantee)
9090
* that a {@link #getFile()} call will succeed.
9191
* <p>This is conservatively {@code false} by default.
9292
* @since 5.0

spring-core/src/main/java/org/springframework/core/io/support/ResourcePatternResolver.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -36,15 +36,16 @@
3636
* {@link ResourceArrayPropertyEditor} for populating {@code Resource} array bean
3737
* properties.
3838
*
39-
* <p>Can be used with any sort of location pattern (e.g. "/WEB-INF/*-context.xml"):
40-
* Input patterns have to match the strategy implementation. This interface just
41-
* specifies the conversion method rather than a specific pattern format.
39+
* <p>Can be used with any sort of location pattern &mdash; for example,
40+
* {@code "/WEB-INF/*-context.xml"}. However, input patterns have to match the
41+
* strategy implementation. This interface just specifies the conversion method
42+
* rather than a specific pattern format.
4243
*
43-
* <p>This interface also suggests a new resource prefix "classpath*:" for all
44-
* matching resources from the class path. Note that the resource location is
45-
* expected to be a path without placeholders in this case (e.g. "/beans.xml");
46-
* JAR files or different directories in the class path can contain multiple files
47-
* of the same name.
44+
* <p>This interface also defines a {@code "classpath*:"} resource prefix for all
45+
* matching resources from the class path. Note that the resource location may
46+
* also contain placeholders &mdash; for example {@code "/beans-*.xml"}. JAR files
47+
* or different directories in the class path can contain multiple files of the
48+
* same name.
4849
*
4950
* @author Juergen Hoeller
5051
* @since 1.0.2

0 commit comments

Comments
 (0)