From 5840ea460eaf2cd38f587c65e5d24091993feb9d Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Thu, 16 Jun 2022 18:47:58 +0200 Subject: [PATCH] #61: Parsson media do not work with injection framework on module path Signed-off-by: Lukas Jungmann (cherry picked from commit 68d27e2028da6269ec2edb00b0401ba0f3e25680) --- .../java/org/eclipse/parsson/media/JsonValueBodyWriter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest/src/main/java/org/eclipse/parsson/media/JsonValueBodyWriter.java b/rest/src/main/java/org/eclipse/parsson/media/JsonValueBodyWriter.java index 8641f3f5..ea3ecf4c 100644 --- a/rest/src/main/java/org/eclipse/parsson/media/JsonValueBodyWriter.java +++ b/rest/src/main/java/org/eclipse/parsson/media/JsonValueBodyWriter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2022 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -57,7 +57,7 @@ public class JsonValueBodyWriter implements MessageBodyWriter { private Configuration config; @PostConstruct - private void init() { + public void init() { Map props = new HashMap<>(); if (config != null && config.getProperties().containsKey(JsonGenerator.PRETTY_PRINTING)) { props.put(JsonGenerator.PRETTY_PRINTING, true);