public static StoredCommit deserialize(Id id, Binding binding) throws Exception {
Id rootNodeId = new Id(binding.readBytesValue("rootNodeId"));
long commitTS = binding.readLongValue("commitTS");
String msg = binding.readStringValue("msg");
String parentId = binding.readStringValue("parentId");
<BUG>return new StoredCommit(id, "".equals(parentId) ? null : parentId, commitTS, rootNodeId, "".equals(msg) ? null : msg);
}
public StoredCommit(Id id, String parentId, long commitTS, Id rootNodeId, String msg) {
</BUG>
this.id = id;

public static StoredCommit deserialize(Id id, Binding binding) throws Exception {
Id rootNodeId = new Id(binding.readBytesValue("rootNodeId"));
long commitTS = binding.readLongValue("commitTS");
String msg = binding.readStringValue("msg");
String parentId = binding.readStringValue("parentId");
return new StoredCommit(id, "".equals(parentId) ? null : Id.fromString(parentId),
commitTS, rootNodeId, "".equals(msg) ? null : msg);
}
public StoredCommit(Id id, Id parentId, long commitTS, Id rootNodeId, String msg) {
this.id = id;
