File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
spring-core/src/main/java/org/springframework/core/io/support Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2016 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.
17
17
package org .springframework .core .io .support ;
18
18
19
19
import org .springframework .core .io .ResourceLoader ;
20
- import org .springframework .util .Assert ;
21
20
import org .springframework .util .ResourceUtils ;
22
21
23
22
/**
24
23
* Utility class for determining whether a given URL is a resource
25
- * location that can be loaded via a ResourcePatternResolver.
24
+ * location that can be loaded via a {@link ResourcePatternResolver} .
26
25
*
27
26
* <p>Callers will usually assume that a location is a relative path
28
27
* if the {@link #isUrl(String)} method returns {@code false}.
@@ -59,7 +58,6 @@ public static boolean isUrl(String resourceLocation) {
59
58
* @see PathMatchingResourcePatternResolver
60
59
*/
61
60
public static ResourcePatternResolver getResourcePatternResolver (ResourceLoader resourceLoader ) {
62
- Assert .notNull (resourceLoader , "ResourceLoader must not be null" );
63
61
if (resourceLoader instanceof ResourcePatternResolver ) {
64
62
return (ResourcePatternResolver ) resourceLoader ;
65
63
}
You can’t perform that action at this time.
0 commit comments