From a4c1df35707c532ce31a8622a646b0d1360b03ac Mon Sep 17 00:00:00 2001 From: kamhung <22250530@qq.com> Date: Wed, 25 Nov 2015 16:01:52 +0800 Subject: [PATCH] --- src/com/wentch/redkale/util/Sheet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } /**