aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2020-12-09 00:26:51 +0000
committerPJ Fanning <fanningpj@apache.org>2020-12-09 00:26:51 +0000
commitd4dde4e36ecc8f9da50d328d59997e3c2e18875b (patch)
treed3bf6448269b4232360057c2771bd8c5d069ae36 /src/java
parent451e47021b10c0700b123f98b8e7b02096523072 (diff)
downloadpoi-d4dde4e36ecc8f9da50d328d59997e3c2e18875b.tar.gz
poi-d4dde4e36ecc8f9da50d328d59997e3c2e18875b.zip
remove some deprecated code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884228 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/hssf/record/DefaultRowHeightRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/EOFRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/FeatHdrRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/FeatRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/FormulaRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/GutsRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/HyperlinkRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/NumberRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/PrintGridlinesRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/cf/FontFormatting.java10
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/AxisOptionsRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/LegendRecord.java13
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/SeriesChartGroupIndexRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/SeriesListRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/SeriesTextRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/TextRecord.java8
18 files changed, 0 insertions, 200 deletions
diff --git a/src/java/org/apache/poi/hssf/record/DefaultRowHeightRecord.java b/src/java/org/apache/poi/hssf/record/DefaultRowHeightRecord.java
index 96462bc128..a68bee910b 100644
--- a/src/java/org/apache/poi/hssf/record/DefaultRowHeightRecord.java
+++ b/src/java/org/apache/poi/hssf/record/DefaultRowHeightRecord.java
@@ -23,7 +23,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Row height for rows with undefined or not explicitly defined heights.
@@ -110,16 +109,6 @@ public final class DefaultRowHeightRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public DefaultRowHeightRecord clone() {
- return copy();
- }
-
@Override
public DefaultRowHeightRecord copy() {
return new DefaultRowHeightRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/EOFRecord.java b/src/java/org/apache/poi/hssf/record/EOFRecord.java
index 73245a82e9..a067b2917d 100644
--- a/src/java/org/apache/poi/hssf/record/EOFRecord.java
+++ b/src/java/org/apache/poi/hssf/record/EOFRecord.java
@@ -21,7 +21,6 @@ import java.util.Map;
import java.util.function.Supplier;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Marks the end of records belonging to a particular object in the HSSF File
@@ -53,16 +52,6 @@ public final class EOFRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public EOFRecord clone() {
- return copy();
- }
-
@Override
public EOFRecord copy() {
return instance;
diff --git a/src/java/org/apache/poi/hssf/record/FeatHdrRecord.java b/src/java/org/apache/poi/hssf/record/FeatHdrRecord.java
index c46551f79e..deb5daaa6a 100644
--- a/src/java/org/apache/poi/hssf/record/FeatHdrRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FeatHdrRecord.java
@@ -23,7 +23,6 @@ import java.util.function.Supplier;
import org.apache.poi.hssf.record.common.FtrHeader;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Title: FeatHdr (Feature Header) Record
@@ -112,17 +111,6 @@ public final class FeatHdrRecord extends StandardRecord {
return 12 + 2+1+4+rgbHdrData.length;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public FeatHdrRecord clone() {
- return copy();
- }
-
@Override
public FeatHdrRecord copy() {
//HACK: do a "cheat" clone, see Record.java for more information
diff --git a/src/java/org/apache/poi/hssf/record/FeatRecord.java b/src/java/org/apache/poi/hssf/record/FeatRecord.java
index d955a911d3..e51cb32bc9 100644
--- a/src/java/org/apache/poi/hssf/record/FeatRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FeatRecord.java
@@ -31,7 +31,6 @@ import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
/**
* Title: Feat (Feature) Record
@@ -181,17 +180,6 @@ public final class FeatRecord extends StandardRecord {
}
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public FeatRecord clone() {
- return copy();
- }
-
@Override
public FeatRecord copy() {
return new FeatRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/FormulaRecord.java b/src/java/org/apache/poi/hssf/record/FormulaRecord.java
index e7ec130a8c..0b702b0128 100644
--- a/src/java/org/apache/poi/hssf/record/FormulaRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FormulaRecord.java
@@ -247,17 +247,6 @@ public final class FormulaRecord extends CellRecord {
return "FORMULA";
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public FormulaRecord clone() {
- return copy();
- }
-
@Override
public FormulaRecord copy() {
return new FormulaRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java b/src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java
index 5102fd4f45..529b9ec234 100644
--- a/src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java
@@ -25,8 +25,6 @@ import org.apache.poi.util.IOUtils;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.RecordFormatException;
-import org.apache.poi.util.Removal;
-
/**
* This structure appears as part of an Obj record that represents a checkbox or radio button.
@@ -87,16 +85,6 @@ public final class FtCblsSubRecord extends SubRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public FtCblsSubRecord clone() {
- return copy();
- }
-
@Override
public FtCblsSubRecord copy() {
return new FtCblsSubRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/GutsRecord.java b/src/java/org/apache/poi/hssf/record/GutsRecord.java
index 8534b6612f..165b502677 100644
--- a/src/java/org/apache/poi/hssf/record/GutsRecord.java
+++ b/src/java/org/apache/poi/hssf/record/GutsRecord.java
@@ -24,7 +24,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Row/column gutter sizes
@@ -164,16 +163,6 @@ public final class GutsRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public GutsRecord clone() {
- return copy();
- }
-
@Override
public GutsRecord copy() {
return new GutsRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java
index 68ed39de03..7130aef0ab 100644
--- a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java
+++ b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java
@@ -36,7 +36,6 @@ import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
import org.apache.poi.util.RecordFormatException;
-import org.apache.poi.util.Removal;
import org.apache.poi.util.StringUtil;
/**
@@ -599,16 +598,6 @@ public final class HyperlinkRecord extends StandardRecord {
setTextMark("");
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public HyperlinkRecord clone() {
- return copy();
- }
-
@Override
public HyperlinkRecord copy() {
return new HyperlinkRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/NumberRecord.java b/src/java/org/apache/poi/hssf/record/NumberRecord.java
index 1b3753de7c..8441736aa4 100644
--- a/src/java/org/apache/poi/hssf/record/NumberRecord.java
+++ b/src/java/org/apache/poi/hssf/record/NumberRecord.java
@@ -22,7 +22,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* NUMBER (0x0203) Contains a numeric cell value.
@@ -86,16 +85,6 @@ public final class NumberRecord extends CellRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public NumberRecord clone() {
- return copy();
- }
-
@Override
public NumberRecord copy() {
return new NumberRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/PrintGridlinesRecord.java b/src/java/org/apache/poi/hssf/record/PrintGridlinesRecord.java
index c1e3a15934..7de13c6ec8 100644
--- a/src/java/org/apache/poi/hssf/record/PrintGridlinesRecord.java
+++ b/src/java/org/apache/poi/hssf/record/PrintGridlinesRecord.java
@@ -21,7 +21,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Whether to print the gridlines when you enjoy the spreadsheet on paper.
@@ -75,16 +74,6 @@ public final class PrintGridlinesRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public PrintGridlinesRecord clone() {
- return copy();
- }
-
public PrintGridlinesRecord copy() {
return new PrintGridlinesRecord(this);
}
diff --git a/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java b/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java
index f51dee1438..0c4f4e6a2b 100644
--- a/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java
+++ b/src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java
@@ -27,7 +27,6 @@ import org.apache.poi.ss.formula.SharedFormula;
import org.apache.poi.ss.formula.ptg.Ptg;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Primarily used as an excel optimization so that multiple similar formulas are not
@@ -103,16 +102,6 @@ public final class SharedFormulaRecord extends SharedValueRecordBase {
return sf.convertSharedFormulas(field_7_parsed_expr.getTokens(), formulaRow, formulaColumn);
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public SharedFormulaRecord clone() {
- return copy();
- }
-
@Override
public SharedFormulaRecord copy() {
return new SharedFormulaRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/cf/FontFormatting.java b/src/java/org/apache/poi/hssf/record/cf/FontFormatting.java
index 1027c5e215..d7f5563c14 100644
--- a/src/java/org/apache/poi/hssf/record/cf/FontFormatting.java
+++ b/src/java/org/apache/poi/hssf/record/cf/FontFormatting.java
@@ -488,16 +488,6 @@ public final class FontFormatting implements Duplicatable, GenericRecord {
return GenericRecordJsonWriter.marshal(this);
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public FontFormatting clone() {
- return copy();
- }
-
@Override
public FontFormatting copy() {
return new FontFormatting(this);
diff --git a/src/java/org/apache/poi/hssf/record/chart/AxisOptionsRecord.java b/src/java/org/apache/poi/hssf/record/chart/AxisOptionsRecord.java
index 291e8603f9..3236ff04df 100644
--- a/src/java/org/apache/poi/hssf/record/chart/AxisOptionsRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/AxisOptionsRecord.java
@@ -29,7 +29,6 @@ import org.apache.poi.util.BitField;
import org.apache.poi.util.BitFieldFactory;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* The axis options record provides unit information and other various tidbits about the axis.
@@ -113,16 +112,6 @@ public final class AxisOptionsRecord extends StandardRecord {
}
/**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public AxisOptionsRecord clone() {
- return copy();
- }
-
- /**
* Get the minimum category field for the AxisOptions record.
*/
public short getMinimumCategory()
diff --git a/src/java/org/apache/poi/hssf/record/chart/LegendRecord.java b/src/java/org/apache/poi/hssf/record/chart/LegendRecord.java
index 3737a25767..ebbe2e1e76 100644
--- a/src/java/org/apache/poi/hssf/record/chart/LegendRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/LegendRecord.java
@@ -30,7 +30,6 @@ import org.apache.poi.util.BitField;
import org.apache.poi.util.BitFieldFactory;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Defines a legend for a chart.
@@ -106,24 +105,12 @@ public final class LegendRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public LegendRecord clone() {
- return copy();
- }
-
@Override
public LegendRecord copy() {
return new LegendRecord(this);
}
-
-
/**
* Get the x axis upper left field for the Legend record.
*/
diff --git a/src/java/org/apache/poi/hssf/record/chart/SeriesChartGroupIndexRecord.java b/src/java/org/apache/poi/hssf/record/chart/SeriesChartGroupIndexRecord.java
index 2d340d9440..ca456168a4 100644
--- a/src/java/org/apache/poi/hssf/record/chart/SeriesChartGroupIndexRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/SeriesChartGroupIndexRecord.java
@@ -25,7 +25,6 @@ import org.apache.poi.hssf.record.RecordInputStream;
import org.apache.poi.hssf.record.StandardRecord;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* The series chart group index record stores the index to the CHARTFORMAT record (0 based).
@@ -59,16 +58,6 @@ public final class SeriesChartGroupIndexRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public SeriesChartGroupIndexRecord clone() {
- return copy();
- }
-
@Override
public SeriesChartGroupIndexRecord copy() {
return new SeriesChartGroupIndexRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/chart/SeriesListRecord.java b/src/java/org/apache/poi/hssf/record/chart/SeriesListRecord.java
index 52c5fcf4f1..ac1fb5aba2 100644
--- a/src/java/org/apache/poi/hssf/record/chart/SeriesListRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/SeriesListRecord.java
@@ -25,7 +25,6 @@ import org.apache.poi.hssf.record.RecordInputStream;
import org.apache.poi.hssf.record.StandardRecord;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* SERIESLIST (0x1016)<p>
@@ -75,16 +74,6 @@ public final class SeriesListRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public SeriesListRecord clone() {
- return copy();
- }
-
@Override
public SeriesListRecord copy() {
return new SeriesListRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/chart/SeriesTextRecord.java b/src/java/org/apache/poi/hssf/record/chart/SeriesTextRecord.java
index 02c4216cfd..4eecfc484a 100644
--- a/src/java/org/apache/poi/hssf/record/chart/SeriesTextRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/SeriesTextRecord.java
@@ -25,7 +25,6 @@ import org.apache.poi.hssf.record.RecordInputStream;
import org.apache.poi.hssf.record.StandardRecord;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
import org.apache.poi.util.StringUtil;
/**
@@ -90,17 +89,6 @@ public final class SeriesTextRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public SeriesTextRecord clone() {
- return copy();
- }
-
@Override
public SeriesTextRecord copy() {
return new SeriesTextRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/chart/TextRecord.java b/src/java/org/apache/poi/hssf/record/chart/TextRecord.java
index 9bbeae4123..7c3c8666aa 100644
--- a/src/java/org/apache/poi/hssf/record/chart/TextRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/TextRecord.java
@@ -31,7 +31,6 @@ import org.apache.poi.hssf.record.StandardRecord;
import org.apache.poi.util.BitField;
import org.apache.poi.util.BitFieldFactory;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* The text record is used to define text stored on a chart.
@@ -156,13 +155,6 @@ public final class TextRecord extends StandardRecord {
return sid;
}
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public TextRecord clone() {
- return copy();
- }
-
@Override
public TextRecord copy() {
return new TextRecord(this);