提交 2ef20f63 编写于 作者: B Brian Clozel

Remove assertion making locations mandatory

This change finishes work started in SPR-12133.

Issue: SPR-12133
上级 da8771d5
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册