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 11/*
2- * Copyright 2002-2012 the original author or authors.
2+ * Copyright 2002-2016 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.
1717package org .springframework .core .io .support ;
1818
1919import org .springframework .core .io .ResourceLoader ;
20- import org .springframework .util .Assert ;
2120import org .springframework .util .ResourceUtils ;
2221
2322/**
2423 * 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} .
2625 *
2726 * <p>Callers will usually assume that a location is a relative path
2827 * if the {@link #isUrl(String)} method returns {@code false}.
@@ -59,7 +58,6 @@ public static boolean isUrl(String resourceLocation) {
5958 * @see PathMatchingResourcePatternResolver
6059 */
6160 public static ResourcePatternResolver getResourcePatternResolver (ResourceLoader resourceLoader ) {
62- Assert .notNull (resourceLoader , "ResourceLoader must not be null" );
6361 if (resourceLoader instanceof ResourcePatternResolver ) {
6462 return (ResourcePatternResolver ) resourceLoader ;
6563 }
You can’t perform that action at this time.
0 commit comments