Skip to content

Commit e24f3f2

Browse files
author
Kirill Peshin
committed
update
1 parent cb2e3f6 commit e24f3f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/tomakehurst/wiremock/extension/ExtensionLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static Map<String, Extension> load(String... classNames) {
4545
public static Map<String, Extension> asMap(List<Extension> extensions) {
4646
return extensions.stream()
4747
.map(extension -> Map.entry(extension.getName(), extension))
48-
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
48+
.collect(Collectors.toUnmodifiableMap(Map.Entry::getKey, Map.Entry::getValue));
4949
}
5050

5151
@SafeVarargs

0 commit comments

Comments
 (0)