perf(record): update return values

This commit is contained in:
chaoc
2023-08-03 16:03:09 +08:00
parent 7296c36d80
commit bcd6826c56

View File

@@ -138,11 +138,11 @@ public class Record {
* Merge the fields of another ObjectNode into the current data record.
*
* @param other The ObjectNode containing the fields to be merged.
* @return The merged ObjectNode.
* @return This record.
*/
public final ObjectNode merge(final ObjectNode other) {
public final Record merge(final ObjectNode other) {
other.fields().forEachRemaining(entry -> obj.set(entry.getKey(), entry.getValue()));
return obj;
return this;
}
/**