Browse Source

Update Javadoc for ResourceHints.registerResourceIfNecessary()

See gh-29094
pull/29130/head
Sam Brannen 3 years ago
parent
commit
018122f684
  1. 1
      spring-core/src/main/java/org/springframework/aot/hint/ResourceHints.java

1
spring-core/src/main/java/org/springframework/aot/hint/ResourceHints.java

@ -118,6 +118,7 @@ public class ResourceHints { @@ -118,6 +118,7 @@ public class ResourceHints {
* availability accordingly.
* @param resource the resource to register
* @see #registerPattern(String)
* @see ClassPathResource#getAbsolutePath()
*/
public void registerResourceIfNecessary(Resource resource) {
if (resource instanceof ClassPathResource classPathResource && classPathResource.exists()) {

Loading…
Cancel
Save