diff --git a/src/com/wentch/redkale/util/Sheet.java b/src/com/wentch/redkale/util/Sheet.java index 4316df164..9d83e82d6 100644 --- a/src/com/wentch/redkale/util/Sheet.java +++ b/src/com/wentch/redkale/util/Sheet.java @@ -36,14 +36,15 @@ public class Sheet implements java.io.Serializable { return data == null ? new Sheet<>() : new Sheet<>(data.size(), data); } - public void copyTo(Sheet copy) { - if (copy == null) return; + public Sheet copyTo(Sheet copy) { + if (copy == null) return copy; copy.total = this.total; if (this.getRows() != null) { copy.setRows(new ArrayList<>(this.getRows())); } else { copy.rows = null; } + return copy; } /**