Correct choice of JSON variant in client
Change-Id: I63922b7719c18930a7d640dca17e404a5939c445 Signed-off-by: Christian Amend <chrisam@apache.org>
This commit is contained in:
parent
ce76e2ddd3
commit
6c894d7b66
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue