remove some deprecated code

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884227 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2020-12-09 00:18:22 +00:00
parent c04110b919
commit 451e47021b
9 changed files with 0 additions and 100 deletions

View File

@ -22,7 +22,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.Removal;
/** /**
* Used by Excel and other MS apps to quickly find rows in the sheets. * Used by Excel and other MS apps to quickly find rows in the sheets.
@ -67,16 +66,6 @@ public final class DBCellRecord extends StandardRecord {
return sid; return sid;
} }
/**
* @deprecated use {@link #copy()} instead
*/
@SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
@Deprecated
@Removal(version = "5.0.0")
public DBCellRecord clone() {
return copy();
}
@Override @Override
public DBCellRecord copy() { public DBCellRecord copy() {
// safe because immutable // safe because immutable

View File

@ -22,7 +22,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.Removal;
import org.apache.poi.util.StringUtil; import org.apache.poi.util.StringUtil;
/** /**
@ -133,16 +132,6 @@ public final class FileSharingRecord extends StandardRecord {
return sid; return sid;
} }
/**
* @deprecated use {@link #copy()} instead
*/
@SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
@Deprecated
@Removal(version = "5.0.0")
public FileSharingRecord clone() {
return copy();
}
@Override @Override
public FileSharingRecord copy() { public FileSharingRecord copy() {
return new FileSharingRecord(this); return new FileSharingRecord(this);

View File

@ -21,7 +21,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.Removal;
/** /**
* Whether to center between horizontal margins * Whether to center between horizontal margins
@ -73,16 +72,6 @@ public final class HCenterRecord extends StandardRecord {
return sid; return sid;
} }
/**
* @deprecated use {@link #copy()} instead
*/
@SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
@Deprecated
@Removal(version = "5.0.0")
public HCenterRecord clone() {
return copy();
}
@Override @Override
public HCenterRecord copy() { public HCenterRecord copy() {
return new HCenterRecord(this); return new HCenterRecord(this);

View File

@ -24,7 +24,6 @@ import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.IntList; import org.apache.poi.util.IntList;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.RecordFormatException; import org.apache.poi.util.RecordFormatException;
import org.apache.poi.util.Removal;
/** /**
* Occurs right after BOF, tells you where the DBCELL records are for a sheet Important for locating cells * Occurs right after BOF, tells you where the DBCELL records are for a sheet Important for locating cells
@ -141,16 +140,6 @@ public final class IndexRecord extends StandardRecord {
return sid; return sid;
} }
/**
* @deprecated use {@link #copy()} instead
*/
@SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
@Deprecated
@Removal(version = "5.0.0")
public IndexRecord clone() {
return copy();
}
@Override @Override
public IndexRecord copy() { public IndexRecord copy() {
return new IndexRecord(this); return new IndexRecord(this);

View File

@ -22,7 +22,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.Removal;
/** /**
* Refers to a string in the shared string table and is a column value. * Refers to a string in the shared string table and is a column value.
@ -84,16 +83,6 @@ public final class LabelSSTRecord extends CellRecord {
return sid; return sid;
} }
/**
* @deprecated use {@link #copy()} instead
*/
@SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
@Deprecated
@Removal(version = "5.0.0")
public LabelSSTRecord clone() {
return copy();
}
@Override @Override
public LabelSSTRecord copy() { public LabelSSTRecord copy() {
return new LabelSSTRecord(this); return new LabelSSTRecord(this);

View File

@ -24,7 +24,6 @@ import java.util.function.Supplier;
import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.Removal;
/** /**
* I have no idea what a Scenario is or why on would want to protect it with the lamest "security" ever invented. * I have no idea what a Scenario is or why on would want to protect it with the lamest "security" ever invented.
@ -86,16 +85,6 @@ public final class ScenarioProtectRecord extends StandardRecord {
return sid; return sid;
} }
/**
* @deprecated use {@link #copy()} instead
*/
@SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
@Deprecated
@Removal(version = "5.0.0")
public ScenarioProtectRecord clone() {
return copy();
}
public ScenarioProtectRecord copy() { public ScenarioProtectRecord copy() {
return new ScenarioProtectRecord(this); return new ScenarioProtectRecord(this);
} }

View File

@ -20,7 +20,6 @@ package org.apache.poi.hssf.record.cf;
import org.apache.poi.common.Duplicatable; import org.apache.poi.common.Duplicatable;
import org.apache.poi.util.LittleEndianInput; import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.Removal;
/** /**
* Icon / Multi-State specific Threshold / value (CFVO), * Icon / Multi-State specific Threshold / value (CFVO),
@ -65,16 +64,6 @@ public final class IconMultiStateThreshold extends Threshold implements Duplicat
return super.getDataLength() + 5; return super.getDataLength() + 5;
} }
/**
* @deprecated use {@link #copy()} instead
*/
@SuppressWarnings("squid:S2975")
@Deprecated
@Removal(version = "5.0.0")
public IconMultiStateThreshold clone() {
return copy();
}
@Override @Override
public IconMultiStateThreshold copy() { public IconMultiStateThreshold copy() {
return new IconMultiStateThreshold(this); return new IconMultiStateThreshold(this);

View File

@ -25,7 +25,6 @@ import org.apache.poi.hssf.record.RecordInputStream;
import org.apache.poi.hssf.record.StandardRecord; import org.apache.poi.hssf.record.StandardRecord;
import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.Removal;
/** /**
* The axis line format record defines the axis type details. * The axis line format record defines the axis type details.
@ -63,16 +62,6 @@ public final class AxisLineFormatRecord extends StandardRecord {
return sid; return sid;
} }
/**
* @deprecated use {@link #copy()} instead
*/
@SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
@Deprecated
@Removal(version = "5.0.0")
public AxisLineFormatRecord clone() {
return copy();
}
/** /**
* Get the axis type field for the AxisLineFormat record. * Get the axis type field for the AxisLineFormat record.
* *

View File

@ -25,7 +25,6 @@ import org.apache.poi.hssf.record.RecordInputStream;
import org.apache.poi.hssf.record.StandardRecord; import org.apache.poi.hssf.record.StandardRecord;
import org.apache.poi.util.GenericRecordUtil; import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput; import org.apache.poi.util.LittleEndianOutput;
import org.apache.poi.util.Removal;
/** /**
* STARTBLOCK - Chart Future Record Type Start Block (0x0852) * STARTBLOCK - Chart Future Record Type Start Block (0x0852)
@ -81,17 +80,6 @@ public final class ChartStartBlockRecord extends StandardRecord {
out.writeShort(iObjectInstance2); out.writeShort(iObjectInstance2);
} }
/**
* @deprecated use {@link #copy()} instead
*/
@Override
@SuppressWarnings({"squid:S2975", "MethodDoesntCallSuperMethod"})
@Deprecated
@Removal(version = "5.0.0")
public ChartStartBlockRecord clone() {
return copy();
}
@Override @Override
public ChartStartBlockRecord copy() { public ChartStartBlockRecord copy() {
return new ChartStartBlockRecord(this); return new ChartStartBlockRecord(this);