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:
Javen O'Neal 2016-11-02 16:37:12 +00:00
parent c6f959bebb
commit 29c0fcf941
2 changed files with 1 additions and 17 deletions

View File

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

View File

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