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