Correct choice of JSON variant in client

Change-Id: I63922b7719c18930a7d640dca17e404a5939c445

Signed-off-by: Christian Amend <chrisam@apache.org>
This commit is contained in:
Klaus Straubinger 2015-01-22 12:29:15 +01:00 committed by Christian Amend
parent ce76e2ddd3
commit 6c894d7b66
1 changed files with 3 additions and 2 deletions

View File

@ -110,8 +110,9 @@ public class ODataClientImpl extends AbstractODataClient<UpdateType> implements
@Override
public ODataSerializer getSerializer(final ODataFormat format) {
return format == ODataFormat.ATOM || format == ODataFormat.XML
? new AtomSerializer(getServiceVersion()) : new JsonSerializer(getServiceVersion(), false);
return format == ODataFormat.ATOM || format == ODataFormat.XML ?
new AtomSerializer(getServiceVersion()) :
new JsonSerializer(getServiceVersion(), false, format);
}
@Override