mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Consistently use mutable ArrayList for modulesToInstall vs modules
Closes gh-30751
This commit is contained in:
+1
-1
@@ -581,7 +581,7 @@ public class Jackson2ObjectMapperBuilder {
|
||||
* @see com.fasterxml.jackson.databind.Module
|
||||
*/
|
||||
public Jackson2ObjectMapperBuilder modulesToInstall(Module... modules) {
|
||||
this.modules = Arrays.asList(modules);
|
||||
this.modules = new ArrayList<>(Arrays.asList(modules));
|
||||
this.findWellKnownModules = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user