Skip to content

Commit

Permalink
Fix jackson default content. (apache#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbxyyx authored and ujjboy committed Jun 6, 2019
1 parent 2a528dc commit dfe997e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.seata.common.Constants;
import io.seata.common.loader.LoadLevel;
import io.seata.rm.datasource.undo.BranchUndoLog;
import io.seata.rm.datasource.undo.UndoLogParser;
Expand Down Expand Up @@ -52,7 +53,7 @@ public String getName() {

@Override
public byte[] getDefaultContent() {
return new byte[0];
return "{}".getBytes(Constants.DEFAULT_CHARSET);
}

@Override
Expand Down

0 comments on commit dfe997e

Please sign in to comment.