bug 60331: remove deprecated FormulaShifter.createForRowShift(). Require SpreadsheetVersion.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1767728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cbc3f8599d
commit
a3f001b7ae
@ -105,21 +105,6 @@ public final class FormulaShifter {
|
||||
_dstSheetIndex = dstSheetIndex;
|
||||
_mode = ShiftMode.SheetMove;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated As of 3.14 beta 1 (November 2015), replaced by {@link #createForRowShift(int, String, int, int, int, SpreadsheetVersion)}
|
||||
*
|
||||
* @param externSheetIndex
|
||||
* @param sheetName
|
||||
* @param firstMovedRowIndex
|
||||
* @param lastMovedRowIndex
|
||||
* @param numberOfRowsToMove
|
||||
* @return FormulaShifter object that can be passed to a RowShifter to modify formulas.
|
||||
*/
|
||||
@Deprecated
|
||||
public static FormulaShifter createForRowShift(int externSheetIndex, String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove) {
|
||||
return createForRowShift(externSheetIndex, sheetName, firstMovedRowIndex, lastMovedRowIndex, numberOfRowsToMove, SpreadsheetVersion.EXCEL97);
|
||||
}
|
||||
|
||||
public static FormulaShifter createForRowShift(int externSheetIndex, String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove,
|
||||
SpreadsheetVersion version) {
|
||||
|
@ -276,9 +276,8 @@ public final class TestFormulaShifter {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("deprecation")
|
||||
public void testConstructor() {
|
||||
assertNotNull(FormulaShifter.createForRowShift(1, "name", 1, 2, 2));
|
||||
assertNotNull(FormulaShifter.createForRowShift(1, "name", 1, 2, 2, SpreadsheetVersion.EXCEL97));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user