Skip to content

Commit 4ecbf65

Browse files
committed
Remove dead fallback code
1 parent 5b6a32d commit 4ecbf65

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/config/FreeMarkerConfigurerBeanDefinitionParser.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2021 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.
@@ -61,9 +61,6 @@ protected void doParse(Element element, ParserContext parserContext, BeanDefinit
6161
for (Element childElement : childElements) {
6262
locations.add(childElement.getAttribute("location"));
6363
}
64-
if (locations.isEmpty()) {
65-
locations.add("/WEB-INF/");
66-
}
6764
builder.addPropertyValue("templateLoaderPaths", StringUtils.toStringArray(locations));
6865
}
6966
}

0 commit comments

Comments
 (0)