Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

ObjectMapper uses writeValueAsString() #112

@ODie0x03B7

Description

@ODie0x03B7

In Fetch.java/send(...) ObjectMapper is invoked with writeValueAsString() and the string is immediately converted to bytes:

String requestParams = mapper.writeValueAsString(request);
byte[] postData = requestParams.getBytes();

This could be replaced by

byte[] postData = mapper.writeValueAsBytes(request);

if I understand correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions