aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi')
-rw-r--r--src/java/org/apache/poi/hssf/record/BoolErrRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/CFRule12Record.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/ColumnInfoRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/CommonObjectDataSubRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/ContinueRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/DVALRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/DVRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/DefaultColWidthRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/DeltaRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/DrawingRecord.java8
-rw-r--r--src/java/org/apache/poi/hssf/record/DrawingSelectionRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/EmbeddedObjectRefSubRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/EndSubRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/FilePassRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/FormatRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/FormulaRecord.java2
-rw-r--r--src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/FtCfSubRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/FtPioGrbitSubRecord.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/GroupMarkerSubRecord.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/IterationRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/MulBlankRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/NoteRecord.java13
-rw-r--r--src/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/ProtectRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/RKRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/RefreshAllRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/SaveRecalcRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/SelectionRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/SubRecord.java18
-rw-r--r--src/java/org/apache/poi/hssf/record/UseSelFSRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/WindowProtectRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/cf/ColorGradientThreshold.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/cf/DataBarThreshold.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/cf/IconMultiStateThreshold.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/cf/PatternFormatting.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/AxisRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/AxisUsedRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/DataFormatRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/LineFormatRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/LinkedDataRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/PlotGrowthRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/SeriesIndexRecord.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/SheetPropertiesRecord.java12
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/TextRecord.java1
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/UnitsRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/chart/ValueRangeRecord.java11
-rw-r--r--src/java/org/apache/poi/hssf/record/common/ExtendedColor.java12
49 files changed, 2 insertions, 446 deletions
diff --git a/src/java/org/apache/poi/hssf/record/BoolErrRecord.java b/src/java/org/apache/poi/hssf/record/BoolErrRecord.java
index d54ac52b49..94266db621 100644
--- a/src/java/org/apache/poi/hssf/record/BoolErrRecord.java
+++ b/src/java/org/apache/poi/hssf/record/BoolErrRecord.java
@@ -24,7 +24,6 @@ import org.apache.poi.ss.usermodel.FormulaError;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.RecordFormatException;
-import org.apache.poi.util.Removal;
/**
* Creates new BoolErrRecord. (0x0205)
@@ -178,17 +177,6 @@ public final class BoolErrRecord extends CellRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public BoolErrRecord clone() {
- return copy();
- }
-
@Override
public BoolErrRecord copy() {
return new BoolErrRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/CFRule12Record.java b/src/java/org/apache/poi/hssf/record/CFRule12Record.java
index bd4805cc32..e98cfce142 100644
--- a/src/java/org/apache/poi/hssf/record/CFRule12Record.java
+++ b/src/java/org/apache/poi/hssf/record/CFRule12Record.java
@@ -41,7 +41,6 @@ import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.util.IOUtils;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
/**
* Conditional Formatting v12 Rule Record (0x087A).
@@ -449,17 +448,6 @@ public final class CFRule12Record extends CFRuleBase implements FutureRecord {
return len;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public CFRule12Record clone() {
- return copy();
- }
-
@Override
public CFRule12Record copy() {
return new CFRule12Record(this);
diff --git a/src/java/org/apache/poi/hssf/record/ColumnInfoRecord.java b/src/java/org/apache/poi/hssf/record/ColumnInfoRecord.java
index edfb06a75e..6cbdc79691 100644
--- a/src/java/org/apache/poi/hssf/record/ColumnInfoRecord.java
+++ b/src/java/org/apache/poi/hssf/record/ColumnInfoRecord.java
@@ -24,7 +24,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 with width and formatting for a range of columns
@@ -239,16 +238,6 @@ public final class ColumnInfoRecord extends StandardRecord {
return 12;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public ColumnInfoRecord clone() {
- return copy();
- }
-
@Override
public ColumnInfoRecord copy() {
return new ColumnInfoRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/CommonObjectDataSubRecord.java b/src/java/org/apache/poi/hssf/record/CommonObjectDataSubRecord.java
index b9797905df..14d7c2f1f5 100644
--- a/src/java/org/apache/poi/hssf/record/CommonObjectDataSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/CommonObjectDataSubRecord.java
@@ -28,7 +28,6 @@ import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.RecordFormatException;
-import org.apache.poi.util.Removal;
/**
* The common object data record is used to store all common preferences for an excel object.
@@ -136,17 +135,6 @@ public final class CommonObjectDataSubRecord extends SubRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public CommonObjectDataSubRecord clone() {
- return copy();
- }
-
@Override
public CommonObjectDataSubRecord copy() {
return new CommonObjectDataSubRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/ContinueRecord.java b/src/java/org/apache/poi/hssf/record/ContinueRecord.java
index 0041437fed..0b44be5857 100644
--- a/src/java/org/apache/poi/hssf/record/ContinueRecord.java
+++ b/src/java/org/apache/poi/hssf/record/ContinueRecord.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;
/**
* Helper class used primarily for SST Records<p>
@@ -66,16 +65,6 @@ public final class ContinueRecord extends StandardRecord {
_data = in.readRemainder();
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public ContinueRecord clone() {
- return copy();
- }
-
@Override
public ContinueRecord copy() {
return new ContinueRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/DVALRecord.java b/src/java/org/apache/poi/hssf/record/DVALRecord.java
index 93b4bb641c..8fed47a429 100644
--- a/src/java/org/apache/poi/hssf/record/DVALRecord.java
+++ b/src/java/org/apache/poi/hssf/record/DVALRecord.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;
/**
* This record is the list header of all data validation records (0x01BE) in the current sheet.
@@ -155,17 +154,6 @@ public final class DVALRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public DVALRecord clone() {
- return copy();
- }
-
@Override
public DVALRecord copy() {
return new DVALRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/DVRecord.java b/src/java/org/apache/poi/hssf/record/DVRecord.java
index 5f1598fb9e..a81e67295e 100644
--- a/src/java/org/apache/poi/hssf/record/DVRecord.java
+++ b/src/java/org/apache/poi/hssf/record/DVRecord.java
@@ -30,7 +30,6 @@ import org.apache.poi.ss.util.CellRangeAddressList;
import org.apache.poi.util.BitField;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
import org.apache.poi.util.StringUtil;
/**
@@ -331,17 +330,6 @@ public final class DVRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public DVRecord clone() {
- return copy();
- }
-
/** Clones the object. */
@Override
public DVRecord copy() {
diff --git a/src/java/org/apache/poi/hssf/record/DefaultColWidthRecord.java b/src/java/org/apache/poi/hssf/record/DefaultColWidthRecord.java
index ab79205130..8c18ae1458 100644
--- a/src/java/org/apache/poi/hssf/record/DefaultColWidthRecord.java
+++ b/src/java/org/apache/poi/hssf/record/DefaultColWidthRecord.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;
/**
* Specifies the default width for columns that have no specific width set.
@@ -86,16 +85,6 @@ public final class DefaultColWidthRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public DefaultColWidthRecord clone() {
- return copy();
- }
-
@Override
public DefaultColWidthRecord copy() {
return new DefaultColWidthRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/DeltaRecord.java b/src/java/org/apache/poi/hssf/record/DeltaRecord.java
index 3649e41999..dd9a28809a 100644
--- a/src/java/org/apache/poi/hssf/record/DeltaRecord.java
+++ b/src/java/org/apache/poi/hssf/record/DeltaRecord.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;
/** Controls the accuracy of the calculations */
public final class DeltaRecord extends StandardRecord {
@@ -66,16 +65,6 @@ public final class DeltaRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public DeltaRecord clone() {
- return copy();
- }
-
@Override
public DeltaRecord copy() {
// immutable
diff --git a/src/java/org/apache/poi/hssf/record/DrawingRecord.java b/src/java/org/apache/poi/hssf/record/DrawingRecord.java
index 35ed7eb961..b368008236 100644
--- a/src/java/org/apache/poi/hssf/record/DrawingRecord.java
+++ b/src/java/org/apache/poi/hssf/record/DrawingRecord.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;
public final class DrawingRecord extends StandardRecord {
public static final short sid = 0x00EC;
@@ -83,13 +82,6 @@ public final class DrawingRecord extends StandardRecord {
recordData = thedata;
}
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public DrawingRecord clone() {
- return copy();
- }
-
/**
* Cloning of drawing records must be executed through HSSFPatriarch, because all id's must be changed
* @return cloned drawing records
diff --git a/src/java/org/apache/poi/hssf/record/DrawingSelectionRecord.java b/src/java/org/apache/poi/hssf/record/DrawingSelectionRecord.java
index 894ac930c4..94b6ac83d6 100644
--- a/src/java/org/apache/poi/hssf/record/DrawingSelectionRecord.java
+++ b/src/java/org/apache/poi/hssf/record/DrawingSelectionRecord.java
@@ -24,7 +24,6 @@ import org.apache.poi.common.usermodel.GenericRecord;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* MsoDrawingSelection (0x00ED)<p>
@@ -114,17 +113,6 @@ public final class DrawingSelectionRecord extends StandardRecord {
}
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public DrawingSelectionRecord clone() {
- return copy();
- }
-
@Override
public DrawingSelectionRecord copy() {
// currently immutable
diff --git a/src/java/org/apache/poi/hssf/record/EmbeddedObjectRefSubRecord.java b/src/java/org/apache/poi/hssf/record/EmbeddedObjectRefSubRecord.java
index 5ef7fdfcd9..915e1771ee 100644
--- a/src/java/org/apache/poi/hssf/record/EmbeddedObjectRefSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/EmbeddedObjectRefSubRecord.java
@@ -35,7 +35,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;
/**
@@ -320,17 +319,6 @@ public final class EmbeddedObjectRefSubRecord extends SubRecord {
return field_6_unknown;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public EmbeddedObjectRefSubRecord clone() {
- return copy();
- }
-
@Override
public EmbeddedObjectRefSubRecord copy() {
return new EmbeddedObjectRefSubRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/EndSubRecord.java b/src/java/org/apache/poi/hssf/record/EndSubRecord.java
index 4158dd6ea9..498ce88b06 100644
--- a/src/java/org/apache/poi/hssf/record/EndSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/EndSubRecord.java
@@ -23,7 +23,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.RecordFormatException;
-import org.apache.poi.util.Removal;
/**
* ftEnd (0x0000)<p>
@@ -70,17 +69,6 @@ public final class EndSubRecord extends SubRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public EndSubRecord clone() {
- return copy();
- }
-
@Override
public EndSubRecord copy() {
return new EndSubRecord();
diff --git a/src/java/org/apache/poi/hssf/record/FilePassRecord.java b/src/java/org/apache/poi/hssf/record/FilePassRecord.java
index 2704402f92..a7fccea0c9 100644
--- a/src/java/org/apache/poi/hssf/record/FilePassRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FilePassRecord.java
@@ -35,7 +35,6 @@ import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianByteArrayOutputStream;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.LittleEndianOutputStream;
-import org.apache.poi.util.Removal;
/**
* File Pass Record (0x002F) <p>
@@ -138,16 +137,6 @@ public final class FilePassRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public FilePassRecord clone() {
- return copy();
- }
-
@Override
public FilePassRecord copy() {
return new FilePassRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/FormatRecord.java b/src/java/org/apache/poi/hssf/record/FormatRecord.java
index 87600d6ed3..4eb4aeb56e 100644
--- a/src/java/org/apache/poi/hssf/record/FormatRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FormatRecord.java
@@ -26,7 +26,6 @@ import org.apache.poi.util.LittleEndianConsts;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
import org.apache.poi.util.StringUtil;
/**
@@ -107,16 +106,6 @@ public final class FormatRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public FormatRecord clone() {
- return copy();
- }
-
@Override
public FormatRecord copy() {
return new FormatRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/FormulaRecord.java b/src/java/org/apache/poi/hssf/record/FormulaRecord.java
index ff556cb27d..e7ec130a8c 100644
--- a/src/java/org/apache/poi/hssf/record/FormulaRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FormulaRecord.java
@@ -124,7 +124,7 @@ public final class FormulaRecord extends CellRecord {
* @deprecated POI 5.0.0, will be removed in 6.0, use getCachedResultTypeEnum until switch to enum is fully done
*/
@Deprecated
- @Removal(version = "6.0.0XSSFScatterChartData.java")
+ @Removal(version = "6.0.0")
public int getCachedResultType() {
if (specialCachedValue == null) {
return CellType.NUMERIC.getCode();
diff --git a/src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java b/src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java
index df65a451fe..5102fd4f45 100644
--- a/src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java
@@ -90,7 +90,6 @@ public final class FtCblsSubRecord extends SubRecord {
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/FtCfSubRecord.java b/src/java/org/apache/poi/hssf/record/FtCfSubRecord.java
index 0dd6fddab2..5cdb539fc1 100644
--- a/src/java/org/apache/poi/hssf/record/FtCfSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FtCfSubRecord.java
@@ -26,7 +26,6 @@ import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.RecordFormatException;
-import org.apache.poi.util.Removal;
/**
@@ -99,17 +98,6 @@ public final class FtCfSubRecord extends SubRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public FtCfSubRecord clone() {
- return copy();
- }
-
@Override
public FtCfSubRecord copy() {
return new FtCfSubRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/FtPioGrbitSubRecord.java b/src/java/org/apache/poi/hssf/record/FtPioGrbitSubRecord.java
index 5569f14ba1..c20f975a4b 100644
--- a/src/java/org/apache/poi/hssf/record/FtPioGrbitSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FtPioGrbitSubRecord.java
@@ -156,7 +156,6 @@ public final class FtPioGrbitSubRecord extends SubRecord {
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/GroupMarkerSubRecord.java b/src/java/org/apache/poi/hssf/record/GroupMarkerSubRecord.java
index f92164ff7d..d7fe77df86 100644
--- a/src/java/org/apache/poi/hssf/record/GroupMarkerSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/GroupMarkerSubRecord.java
@@ -78,7 +78,6 @@ public final class GroupMarkerSubRecord extends SubRecord {
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/IterationRecord.java b/src/java/org/apache/poi/hssf/record/IterationRecord.java
index ccfbe7928a..1dbb863932 100644
--- a/src/java/org/apache/poi/hssf/record/IterationRecord.java
+++ b/src/java/org/apache/poi/hssf/record/IterationRecord.java
@@ -24,7 +24,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;
/**
* Tells whether to iterate over formula calculations or not.
@@ -80,16 +79,6 @@ public final class IterationRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public IterationRecord clone() {
- return copy();
- }
-
@Override
public IterationRecord copy() {
return new IterationRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java b/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
index db751b084f..3838f76bd2 100644
--- a/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
@@ -284,7 +284,6 @@ public class LbsDataSubRecord extends SubRecord {
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/MulBlankRecord.java b/src/java/org/apache/poi/hssf/record/MulBlankRecord.java
index fee9c7025c..0f395cc272 100644
--- a/src/java/org/apache/poi/hssf/record/MulBlankRecord.java
+++ b/src/java/org/apache/poi/hssf/record/MulBlankRecord.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;
/**
* Represents a set of columns in a row with no value but with styling.
@@ -119,17 +118,6 @@ public final class MulBlankRecord extends StandardRecord {
return 6 + _xfs.length * 2;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public MulBlankRecord clone() {
- return copy();
- }
-
@Override
public MulBlankRecord copy() {
// immutable - so OK to return this
diff --git a/src/java/org/apache/poi/hssf/record/NoteRecord.java b/src/java/org/apache/poi/hssf/record/NoteRecord.java
index 2a73c545e3..c89ac5dece 100644
--- a/src/java/org/apache/poi/hssf/record/NoteRecord.java
+++ b/src/java/org/apache/poi/hssf/record/NoteRecord.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;
import org.apache.poi.util.StringUtil;
/**
@@ -238,19 +237,9 @@ public final class NoteRecord extends StandardRecord {
*/
public void setAuthor(String author) {
field_6_author = author;
- field_5_hasMultibyte = StringUtil.hasMultibyte(author);
+ field_5_hasMultibyte = StringUtil.hasMultibyte(author);
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public NoteRecord clone() {
- return copy();
- }
@Override
public NoteRecord copy() {
diff --git a/src/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java b/src/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java
index b2e2b49857..85c553792e 100644
--- a/src/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java
@@ -102,7 +102,6 @@ public final class NoteStructureSubRecord extends SubRecord {
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/ProtectRecord.java b/src/java/org/apache/poi/hssf/record/ProtectRecord.java
index 0d49793fc1..b57cbe72a9 100644
--- a/src/java/org/apache/poi/hssf/record/ProtectRecord.java
+++ b/src/java/org/apache/poi/hssf/record/ProtectRecord.java
@@ -24,7 +24,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 whether a sheet or workbook is protected (HSSF DOES NOT SUPPORT ENCRYPTION)<p>
@@ -84,16 +83,6 @@ public final class ProtectRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public ProtectRecord clone() {
- return copy();
- }
-
@Override
public ProtectRecord copy() {
return new ProtectRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/RKRecord.java b/src/java/org/apache/poi/hssf/record/RKRecord.java
index cd6dacc154..d6737ad00d 100644
--- a/src/java/org/apache/poi/hssf/record/RKRecord.java
+++ b/src/java/org/apache/poi/hssf/record/RKRecord.java
@@ -23,7 +23,6 @@ import java.util.function.Supplier;
import org.apache.poi.hssf.util.RKUtil;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* An internal 32 bit number with the two most significant bits storing the type.
@@ -94,16 +93,6 @@ public final class RKRecord extends CellRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public RKRecord clone() {
- return copy();
- }
-
@Override
public RKRecord copy() {
return new RKRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/RefreshAllRecord.java b/src/java/org/apache/poi/hssf/record/RefreshAllRecord.java
index 919901e5fb..e385f91bec 100644
--- a/src/java/org/apache/poi/hssf/record/RefreshAllRecord.java
+++ b/src/java/org/apache/poi/hssf/record/RefreshAllRecord.java
@@ -24,7 +24,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;
/**
* Flag whether to refresh all external data when loading a sheet.
@@ -83,16 +82,6 @@ public final class RefreshAllRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public RefreshAllRecord clone() {
- return copy();
- }
-
@Override
public RefreshAllRecord copy() {
return new RefreshAllRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/SaveRecalcRecord.java b/src/java/org/apache/poi/hssf/record/SaveRecalcRecord.java
index 8e08d6a201..47934d028f 100644
--- a/src/java/org/apache/poi/hssf/record/SaveRecalcRecord.java
+++ b/src/java/org/apache/poi/hssf/record/SaveRecalcRecord.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;
/**
* Defines whether to recalculate before saving (set to true)
@@ -75,16 +74,6 @@ public final class SaveRecalcRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public SaveRecalcRecord clone() {
- return copy();
- }
-
@Override
public SaveRecalcRecord copy() {
return new SaveRecalcRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/SelectionRecord.java b/src/java/org/apache/poi/hssf/record/SelectionRecord.java
index 3f22c45c66..6019a825a0 100644
--- a/src/java/org/apache/poi/hssf/record/SelectionRecord.java
+++ b/src/java/org/apache/poi/hssf/record/SelectionRecord.java
@@ -24,7 +24,6 @@ import java.util.stream.Stream;
import org.apache.poi.hssf.util.CellRangeAddress8Bit;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Shows the user's selection on the sheet for write set num refs to 0
@@ -173,16 +172,6 @@ public final class SelectionRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public SelectionRecord clone() {
- return copy();
- }
-
@Override
public SelectionRecord copy() {
return new SelectionRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/SubRecord.java b/src/java/org/apache/poi/hssf/record/SubRecord.java
index ac56f4fed2..0429267162 100644
--- a/src/java/org/apache/poi/hssf/record/SubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/SubRecord.java
@@ -32,7 +32,6 @@ import org.apache.poi.util.IOUtils;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.LittleEndianOutputStream;
-import org.apache.poi.util.Removal;
/**
* Subrecords are part of the OBJ class.
@@ -167,17 +166,6 @@ public abstract class SubRecord implements Duplicatable, GenericRecord {
out.write(_data);
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public UnknownSubRecord clone() {
- return copy();
- }
-
@Override
public UnknownSubRecord copy() {
return this;
@@ -198,12 +186,6 @@ public abstract class SubRecord implements Duplicatable, GenericRecord {
}
@Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public abstract SubRecord clone();
-
- @Override
public abstract SubRecord copy();
@Override
diff --git a/src/java/org/apache/poi/hssf/record/UseSelFSRecord.java b/src/java/org/apache/poi/hssf/record/UseSelFSRecord.java
index dda12ab18a..139c2faa18 100644
--- a/src/java/org/apache/poi/hssf/record/UseSelFSRecord.java
+++ b/src/java/org/apache/poi/hssf/record/UseSelFSRecord.java
@@ -26,7 +26,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;
/**
* Tells the GUI if this was written by something that can use "natural language" formulas. HSSF can't.
@@ -68,16 +67,6 @@ public final class UseSelFSRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public UseSelFSRecord clone() {
- return copy();
- }
-
@Override
public UseSelFSRecord copy() {
return new UseSelFSRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/WindowProtectRecord.java b/src/java/org/apache/poi/hssf/record/WindowProtectRecord.java
index 4b5df7b737..368f39a66a 100644
--- a/src/java/org/apache/poi/hssf/record/WindowProtectRecord.java
+++ b/src/java/org/apache/poi/hssf/record/WindowProtectRecord.java
@@ -24,7 +24,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;
/**
* Flags whether workbook windows are protected
@@ -84,16 +83,6 @@ public final class WindowProtectRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public WindowProtectRecord clone() {
- return copy();
- }
-
@Override
public WindowProtectRecord copy() {
return new WindowProtectRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/cf/ColorGradientThreshold.java b/src/java/org/apache/poi/hssf/record/cf/ColorGradientThreshold.java
index 15f22d8187..2cea08e4c5 100644
--- a/src/java/org/apache/poi/hssf/record/cf/ColorGradientThreshold.java
+++ b/src/java/org/apache/poi/hssf/record/cf/ColorGradientThreshold.java
@@ -63,7 +63,6 @@ public final class ColorGradientThreshold extends Threshold implements Duplicata
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/cf/DataBarThreshold.java b/src/java/org/apache/poi/hssf/record/cf/DataBarThreshold.java
index ade385a46e..329f047731 100644
--- a/src/java/org/apache/poi/hssf/record/cf/DataBarThreshold.java
+++ b/src/java/org/apache/poi/hssf/record/cf/DataBarThreshold.java
@@ -42,7 +42,6 @@ public final class DataBarThreshold extends Threshold implements Duplicatable {
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/cf/IconMultiStateThreshold.java b/src/java/org/apache/poi/hssf/record/cf/IconMultiStateThreshold.java
index f7c2d55794..6ee8e8ef69 100644
--- a/src/java/org/apache/poi/hssf/record/cf/IconMultiStateThreshold.java
+++ b/src/java/org/apache/poi/hssf/record/cf/IconMultiStateThreshold.java
@@ -68,7 +68,6 @@ public final class IconMultiStateThreshold extends Threshold implements Duplicat
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/cf/PatternFormatting.java b/src/java/org/apache/poi/hssf/record/cf/PatternFormatting.java
index 2820fc2cf6..4bad219297 100644
--- a/src/java/org/apache/poi/hssf/record/cf/PatternFormatting.java
+++ b/src/java/org/apache/poi/hssf/record/cf/PatternFormatting.java
@@ -30,7 +30,6 @@ import org.apache.poi.util.GenericRecordJsonWriter;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
/**
* Pattern Formatting Block of the Conditional Formatting Rule Record.
@@ -185,16 +184,6 @@ public final class PatternFormatting implements Duplicatable, GenericRecord {
return GenericRecordJsonWriter.marshal(this);
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public PatternFormatting clone() {
- return copy();
- }
-
public PatternFormatting copy() {
return new PatternFormatting(this);
}
diff --git a/src/java/org/apache/poi/hssf/record/chart/AxisRecord.java b/src/java/org/apache/poi/hssf/record/chart/AxisRecord.java
index 8979d8fc88..2da5fd4fe1 100644
--- a/src/java/org/apache/poi/hssf/record/chart/AxisRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/AxisRecord.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 axis record defines the type of an axis.
@@ -79,16 +78,6 @@ public final class AxisRecord extends StandardRecord {
}
/**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public AxisRecord clone() {
- return copy();
- }
-
- /**
* Get the axis type field for the Axis record.
*
* @return One of
diff --git a/src/java/org/apache/poi/hssf/record/chart/AxisUsedRecord.java b/src/java/org/apache/poi/hssf/record/chart/AxisUsedRecord.java
index 8a45bb28c2..bd22059232 100644
--- a/src/java/org/apache/poi/hssf/record/chart/AxisUsedRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/AxisUsedRecord.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 number of axes used on a chart.
@@ -60,16 +59,6 @@ public final class AxisUsedRecord extends StandardRecord {
}
/**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public AxisUsedRecord clone() {
- return copy();
- }
-
- /**
* Get the num axis field for the AxisUsed record.
*/
public short getNumAxis()
diff --git a/src/java/org/apache/poi/hssf/record/chart/DataFormatRecord.java b/src/java/org/apache/poi/hssf/record/chart/DataFormatRecord.java
index 91bbf62ec2..ba319f23f2 100644
--- a/src/java/org/apache/poi/hssf/record/chart/DataFormatRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/DataFormatRecord.java
@@ -27,7 +27,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 data format record is used to index into a series.
@@ -75,16 +74,6 @@ public final class DataFormatRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public DataFormatRecord clone() {
- return copy();
- }
-
@Override
public DataFormatRecord copy() {
return new DataFormatRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/chart/LineFormatRecord.java b/src/java/org/apache/poi/hssf/record/chart/LineFormatRecord.java
index 13960ba462..94d307c752 100644
--- a/src/java/org/apache/poi/hssf/record/chart/LineFormatRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/LineFormatRecord.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;
/**
* Describes a line format record. The line format record controls how a line on a chart appears.
@@ -101,16 +100,6 @@ public final class LineFormatRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public LineFormatRecord clone() {
- return copy();
- }
-
@Override
public LineFormatRecord copy() {
return new LineFormatRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/chart/LinkedDataRecord.java b/src/java/org/apache/poi/hssf/record/chart/LinkedDataRecord.java
index 7061c07f7e..0b4810bc99 100644
--- a/src/java/org/apache/poi/hssf/record/chart/LinkedDataRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/LinkedDataRecord.java
@@ -31,7 +31,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;
/**
* Describes a linked data record. This record refers to the series data or text.
@@ -95,16 +94,6 @@ public final class LinkedDataRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public LinkedDataRecord clone() {
- return copy();
- }
-
@Override
public LinkedDataRecord copy() {
return new LinkedDataRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/chart/PlotGrowthRecord.java b/src/java/org/apache/poi/hssf/record/chart/PlotGrowthRecord.java
index d80b2c64ad..8167858e24 100644
--- a/src/java/org/apache/poi/hssf/record/chart/PlotGrowthRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/PlotGrowthRecord.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 plot growth record specifies the scaling factors used when a font is scaled.
@@ -62,16 +61,6 @@ public final class PlotGrowthRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public PlotGrowthRecord clone() {
- return copy();
- }
-
public PlotGrowthRecord copy() {
return new PlotGrowthRecord(this);
}
diff --git a/src/java/org/apache/poi/hssf/record/chart/SeriesIndexRecord.java b/src/java/org/apache/poi/hssf/record/chart/SeriesIndexRecord.java
index 561148828c..58e8a6c9c6 100644
--- a/src/java/org/apache/poi/hssf/record/chart/SeriesIndexRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/SeriesIndexRecord.java
@@ -61,7 +61,6 @@ public final class SeriesIndexRecord extends StandardRecord {
/**
* @deprecated use {@link #copy()} instead
*/
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/chart/SheetPropertiesRecord.java b/src/java/org/apache/poi/hssf/record/chart/SheetPropertiesRecord.java
index 16ce5e4ab6..00158480e2 100644
--- a/src/java/org/apache/poi/hssf/record/chart/SheetPropertiesRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/SheetPropertiesRecord.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;
/**
* Describes a chart sheet properties record. SHTPROPS (0x1044)<p>
@@ -80,17 +79,6 @@ public final class SheetPropertiesRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @Override
- @SuppressWarnings("squid:S2975")
- @Deprecated
- @Removal(version = "5.0.0")
- public SheetPropertiesRecord clone() {
- return copy();
- }
-
@Override
public SheetPropertiesRecord copy() {
return new SheetPropertiesRecord(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 252a8e5b8c..9bbeae4123 100644
--- a/src/java/org/apache/poi/hssf/record/chart/TextRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/TextRecord.java
@@ -156,7 +156,6 @@ public final class TextRecord extends StandardRecord {
return sid;
}
- @Override
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
diff --git a/src/java/org/apache/poi/hssf/record/chart/UnitsRecord.java b/src/java/org/apache/poi/hssf/record/chart/UnitsRecord.java
index 4293bb9fde..661e521c2f 100644
--- a/src/java/org/apache/poi/hssf/record/chart/UnitsRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/UnitsRecord.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 units record describes units.
@@ -59,16 +58,6 @@ public final class UnitsRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public UnitsRecord clone() {
- return copy();
- }
-
@Override
public UnitsRecord copy() {
return new UnitsRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/chart/ValueRangeRecord.java b/src/java/org/apache/poi/hssf/record/chart/ValueRangeRecord.java
index 945bd5c2b0..e18ebcc1b8 100644
--- a/src/java/org/apache/poi/hssf/record/chart/ValueRangeRecord.java
+++ b/src/java/org/apache/poi/hssf/record/chart/ValueRangeRecord.java
@@ -27,7 +27,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 value range record defines the range of the value axis.
@@ -91,16 +90,6 @@ public final class ValueRangeRecord extends StandardRecord {
return sid;
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public ValueRangeRecord clone() {
- return copy();
- }
-
@Override
public ValueRangeRecord copy() {
return new ValueRangeRecord(this);
diff --git a/src/java/org/apache/poi/hssf/record/common/ExtendedColor.java b/src/java/org/apache/poi/hssf/record/common/ExtendedColor.java
index 8c790b20c5..e81cab49da 100644
--- a/src/java/org/apache/poi/hssf/record/common/ExtendedColor.java
+++ b/src/java/org/apache/poi/hssf/record/common/ExtendedColor.java
@@ -26,8 +26,6 @@ import org.apache.poi.util.GenericRecordJsonWriter;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
-import org.apache.poi.util.Removal;
-
/**
* Title: CTColor (Extended Color) record part
@@ -167,16 +165,6 @@ public final class ExtendedColor implements Duplicatable, GenericRecord {
return GenericRecordJsonWriter.marshal(this);
}
- /**
- * @deprecated use {@link #copy()} instead
- */
- @SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
- @Deprecated
- @Removal(version = "5.0.0")
- public ExtendedColor clone() {
- return copy();
- }
-
@Override
public ExtendedColor copy() {
return new ExtendedColor(this);