From 3b8ce51ff8abfc3d425f139198a185fa453cacb6 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 8 Nov 2021 20:53:19 +0000 Subject: [PATCH] remove old deprecated clone method git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894849 13f79535-47bb-0310-9956-ffa450edef68 --- .../record/aggregates/ValueRecordsAggregate.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java index 7e6ac22aaf..7b53847741 100644 --- a/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java +++ b/poi/src/main/java/org/apache/poi/hssf/record/aggregates/ValueRecordsAggregate.java @@ -29,10 +29,8 @@ import org.apache.poi.hssf.record.Record; import org.apache.poi.hssf.record.RecordBase; import org.apache.poi.hssf.record.StringRecord; import org.apache.poi.hssf.record.aggregates.RecordAggregate.RecordVisitor; -import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.formula.FormulaShifter; import org.apache.poi.ss.formula.ptg.Ptg; -import org.apache.poi.util.Removal; /** * @@ -356,15 +354,4 @@ public final class ValueRecordsAggregate implements Iterable iterator() { return new ValueIterator(); } - - /** - * @deprecated use {@link org.apache.poi.hssf.usermodel.HSSFSheet#cloneSheet(HSSFWorkbook)} instead - */ - @Override - @SuppressWarnings("squid:S2975") - @Deprecated - @Removal(version = "5.0.0") - public Object clone() { - throw new RuntimeException("clone() should not be called. ValueRecordsAggregate should be copied via Sheet.cloneSheet()"); - } }