camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gareth Western (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-8399) Support setMode in JsonDataFormat
Date Tue, 24 Feb 2015 11:57:04 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-8399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gareth Western updated CAMEL-8399:
----------------------------------
    Description: 
CAMEL-7592 introduced the ability to customise the XStream mode, however org.apache.camel.dataformat.xstream.JsonDataFormat#createXStream
still sets the mode explicitly to NO_REFERENCES.

I think someone just has to update the method to do the following instead:
{code}
                if (getMode() != null) {
                    xs.setMode(getModeFromString(getMode()));
                }
{code}

  was:
CAMEL-7592 introduced the ability to customise the XStream mode, however org.apache.camel.dataformat.xstream.JsonDataFormat#createXStream
still sets the mode explicitly to NO_REFERENCES.

I think someone just has to update the method to do the following instead:
{code}
                if (getMode() != null) {
                    xstream.setMode(getModeFromString(getMode()));
                }
{code}


> Support setMode in JsonDataFormat
> ---------------------------------
>
>                 Key: CAMEL-8399
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8399
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-xstream
>    Affects Versions: 2.14.1
>            Reporter: Gareth Western
>            Priority: Minor
>
> CAMEL-7592 introduced the ability to customise the XStream mode, however org.apache.camel.dataformat.xstream.JsonDataFormat#createXStream
still sets the mode explicitly to NO_REFERENCES.
> I think someone just has to update the method to do the following instead:
> {code}
>                 if (getMode() != null) {
>                     xs.setMode(getModeFromString(getMode()));
>                 }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message