git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884228 13f79535-47bb-0310-9956-ffa450edef68tags/before_ooxml_3rd_edition
@@ -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); |
@@ -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; |
@@ -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 |
@@ -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); |
@@ -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); |
@@ -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); |
@@ -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); |
@@ -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); |
@@ -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); |
@@ -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); | |||
} |
@@ -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); |
@@ -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); |
@@ -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. | |||
*/ |
@@ -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. | |||
*/ |
@@ -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); |
@@ -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); |
@@ -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); |
@@ -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); |