mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Remove assertion making locations mandatory
This change finishes work started in SPR-12133. Issue: SPR-12133
This commit is contained in:
+1
-1
@@ -104,7 +104,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator implements H
|
||||
* for serving static resources.
|
||||
*/
|
||||
public void setLocations(List<Resource> locations) {
|
||||
Assert.notEmpty(locations, "Locations list must not be empty");
|
||||
Assert.notNull(locations, "Locations list must not be null");
|
||||
this.locations.clear();
|
||||
this.locations.addAll(locations);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user