This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository nuiton-web. See https://gitlab.nuiton.org/nuiton/nuiton-web.git commit f10483af42af64de99ebcdf2f6ea65008f570510 Author: Brendan Le Ny <bleny@codelutin.com> Date: Tue Dec 19 16:44:11 2017 +0100 Inline a method from JSONUtil that will no longer be available --- .../main/java/org/nuiton/web/struts2/converters/JsonConverter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nuiton-struts2/src/main/java/org/nuiton/web/struts2/converters/JsonConverter.java b/nuiton-struts2/src/main/java/org/nuiton/web/struts2/converters/JsonConverter.java index 1e5f314..e52879a 100644 --- a/nuiton-struts2/src/main/java/org/nuiton/web/struts2/converters/JsonConverter.java +++ b/nuiton-struts2/src/main/java/org/nuiton/web/struts2/converters/JsonConverter.java @@ -27,6 +27,7 @@ import org.apache.commons.logging.LogFactory; import org.apache.struts2.json.JSONException; import org.apache.struts2.json.JSONPopulator; import org.apache.struts2.json.JSONUtil; +import org.apache.struts2.json.JSONWriter; import org.apache.struts2.util.StrutsTypeConverter; import java.util.Arrays; @@ -97,7 +98,9 @@ public class JsonConverter extends StrutsTypeConverter { json = "null"; } else { try { - json = JSONUtil.serialize(object, false); + JSONWriter writer = new JSONWriter(); + writer.setCacheBeanInfo(false); + json = writer.write(object); } catch (JSONException e) { if (log.isErrorEnabled()) { log.error("unable to serialize object " + object, e); -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.