Merge branch '1.5.x'

This commit is contained in:
Phillip Webb
2017-12-13 13:07:18 -08:00
14 changed files with 124 additions and 44 deletions

View File

@@ -121,7 +121,7 @@ public final class Layouts {
*/
public static class War implements Layout {
private static final Map<LibraryScope, String> scopeDestinations;
private static final Map<LibraryScope, String> SCOPE_DESTINATIONS;
static {
Map<LibraryScope, String> map = new HashMap<>();
@@ -129,7 +129,7 @@ public final class Layouts {
map.put(LibraryScope.CUSTOM, "WEB-INF/lib/");
map.put(LibraryScope.RUNTIME, "WEB-INF/lib/");
map.put(LibraryScope.PROVIDED, "WEB-INF/lib-provided/");
scopeDestinations = Collections.unmodifiableMap(map);
SCOPE_DESTINATIONS = Collections.unmodifiableMap(map);
}
@Override
@@ -139,7 +139,7 @@ public final class Layouts {
@Override
public String getLibraryDestination(String libraryName, LibraryScope scope) {
return scopeDestinations.get(scope);
return SCOPE_DESTINATIONS.get(scope);
}
@Override