Browse Source

Remove assertion making locations mandatory

This change finishes work started in SPR-12133.

Issue: SPR-12133
pull/641/head
Brian Clozel 12 years ago
parent
commit
2ef20f63bc
  1. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java

2
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java

@ -104,7 +104,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator implements H @@ -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);
}

Loading…
Cancel
Save