This is an automated email from the ASF dual-hosted git repository.

anatole pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-tamaya-extensions.git

commit 46a28932caea7346e78db2f26eac7b595f35360e
Author: Anatole Tresch <[email protected]>
AuthorDate: Sat Feb 23 22:57:03 2019 +0100

    Fixed several quality issues.
---
 .../src/main/java/org/apache/tamaya/json/JSONPropertySource.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/modules/formats/json/src/main/java/org/apache/tamaya/json/JSONPropertySource.java
 
b/modules/formats/json/src/main/java/org/apache/tamaya/json/JSONPropertySource.java
index df7f599..bc982ef 100644
--- 
a/modules/formats/json/src/main/java/org/apache/tamaya/json/JSONPropertySource.java
+++ 
b/modules/formats/json/src/main/java/org/apache/tamaya/json/JSONPropertySource.java
@@ -54,7 +54,7 @@ public class JSONPropertySource implements PropertySource {
     /** The evaluated ordinal. */
     private int ordinal;
     /** The JSON reader factory used. */
-    private JsonReaderFactory readerFactory;
+    private JsonReaderFactory readerFactory = initReaderFactory();
 
     /** Initializes the factory to be used for creating readers. */
     private JsonReaderFactory initReaderFactory() {
@@ -85,9 +85,6 @@ public class JSONPropertySource implements PropertySource {
         if (this.values.containsKey(TAMAYA_ORDINAL)) {
             this.ordinal = 
Integer.parseInt(this.values.get(TAMAYA_ORDINAL).getValue());
         }
-        Map<String, Object> config = new HashMap<>();
-        config.put(JOHNZON_SUPPORTS_COMMENTS_PROP, true);
-        this.readerFactory = Json.createReaderFactory(config);
     }
 
 

Reply via email to