This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/johnzon.git
The following commit(s) were added to refs/heads/master by this push: new 80d6328 avoid uninitialized MapperBuilder for pojo<->JsonValue mapping 80d6328 is described below commit 80d63286a994c0ee3b5d36aee209de9554535ba5 Author: Romain Manni-Bucau <rmannibu...@apache.org> AuthorDate: Sun Feb 9 20:23:36 2020 +0100 avoid uninitialized MapperBuilder for pojo<->JsonValue mapping --- .../src/main/java/org/apache/johnzon/mapper/MapperBuilder.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java b/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java index 93decfb..0de82c4 100644 --- a/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java +++ b/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java @@ -197,9 +197,6 @@ public class MapperBuilder { if (this.provider == null) { this.provider = JsonProvider.provider(); } - if (readerFactory == null) { - readerFactory = provider.createReaderFactory(emptyMap()); - } if (builderFactory == null) { builderFactory = provider.createBuilderFactory(emptyMap()); }