File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed
spring-core/src/main/java/org/springframework/core/io Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -181,8 +181,7 @@ protected File getFileForLastModifiedCheck() throws IOException {
181
181
}
182
182
183
183
/**
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.
186
185
* @since 5.0
187
186
* @see #getFile(URI)
188
187
*/
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public abstract class AbstractResource implements Resource {
50
50
/**
51
51
* This implementation checks whether a File can be opened,
52
52
* 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.
54
54
*/
55
55
@ Override
56
56
public boolean exists () {
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ default boolean isOpen() {
86
86
87
87
/**
88
88
* 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)
90
90
* that a {@link #getFile()} call will succeed.
91
91
* <p>This is conservatively {@code false} by default.
92
92
* @since 5.0
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
36
36
* {@link ResourceArrayPropertyEditor} for populating {@code Resource} array bean
37
37
* properties.
38
38
*
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 — 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.
42
43
*
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 — for example {@code "/beans-* .xml"}. JAR files
47
+ * or different directories in the class path can contain multiple files of the
48
+ * same name.
48
49
*
49
50
* @author Juergen Hoeller
50
51
* @since 1.0.2
You can’t perform that action at this time.
0 commit comments