Browse Source

remove some deprecated code

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884228 13f79535-47bb-0310-9956-ffa450edef68
tags/before_ooxml_3rd_edition
PJ Fanning 3 years ago
parent
commit
d4dde4e36e

+ 0
- 11
src/java/org/apache/poi/hssf/record/DefaultRowHeightRecord.java View File

@@ -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);

+ 0
- 11
src/java/org/apache/poi/hssf/record/EOFRecord.java View File

@@ -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;

+ 0
- 12
src/java/org/apache/poi/hssf/record/FeatHdrRecord.java View File

@@ -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

+ 0
- 12
src/java/org/apache/poi/hssf/record/FeatRecord.java View File

@@ -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);

+ 0
- 11
src/java/org/apache/poi/hssf/record/FormulaRecord.java View File

@@ -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);

+ 0
- 12
src/java/org/apache/poi/hssf/record/FtCblsSubRecord.java View File

@@ -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);

+ 0
- 11
src/java/org/apache/poi/hssf/record/GutsRecord.java View File

@@ -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);

+ 0
- 11
src/java/org/apache/poi/hssf/record/HyperlinkRecord.java View File

@@ -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);

+ 0
- 11
src/java/org/apache/poi/hssf/record/NumberRecord.java View File

@@ -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);

+ 0
- 11
src/java/org/apache/poi/hssf/record/PrintGridlinesRecord.java View File

@@ -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);
}

+ 0
- 11
src/java/org/apache/poi/hssf/record/SharedFormulaRecord.java View File

@@ -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);

+ 0
- 10
src/java/org/apache/poi/hssf/record/cf/FontFormatting.java View File

@@ -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);

+ 0
- 11
src/java/org/apache/poi/hssf/record/chart/AxisOptionsRecord.java View File

@@ -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.
@@ -112,16 +111,6 @@ public final class AxisOptionsRecord extends StandardRecord {
return sid;
}

/**
* @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.
*/

+ 0
- 13
src/java/org/apache/poi/hssf/record/chart/LegendRecord.java View File

@@ -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.
*/

+ 0
- 11
src/java/org/apache/poi/hssf/record/chart/SeriesChartGroupIndexRecord.java View File

@@ -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);

+ 0
- 11
src/java/org/apache/poi/hssf/record/chart/SeriesListRecord.java View File

@@ -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);

+ 0
- 12
src/java/org/apache/poi/hssf/record/chart/SeriesTextRecord.java View File

@@ -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);

+ 0
- 8
src/java/org/apache/poi/hssf/record/chart/TextRecord.java View File

@@ -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);

Loading…
Cancel
Save