From 2ef20f63bc97cb4612befdc9d63cab1554694992 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 2 Sep 2014 10:44:08 +0200 Subject: [PATCH] Remove assertion making locations mandatory This change finishes work started in SPR-12133. Issue: SPR-12133 --- .../web/servlet/resource/ResourceHttpRequestHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java index d147132a50..e36c08c590 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java @@ -104,7 +104,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator implements H * for serving static resources. */ public void setLocations(List 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); } -- GitLab