From 7d7d78f9103789d70976692271720109a3b2c7fe Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Fri, 4 Dec 2015 06:30:34 +0000 Subject: [PATCH] remove deprecated functions (since 2008) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717899 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/usermodel/HSSFSheet.java | 21 +++++++++++++++++++ .../poi/hssf/usermodel/TestHSSFCell.java | 2 -- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java index b4e2d2bb4e..a5e86b6309 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java @@ -2539,4 +2539,25 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet { public int getColumnOutlineLevel(int columnIndex) { return _sheet.getColumnOutlineLevel(columnIndex); } + + /** + * {@inheritDoc} + */ + @Override + public CellAddress getActiveCell() { + int row = _sheet.getActiveCellRow(); + int col = _sheet.getActiveCellCol(); + return new CellAddress(row, col); + } + + /** + * {@inheritDoc} + */ + @Override + public void setActiveCell(CellAddress addr) { + int row = addr.getRow(); + short col = (short) addr.getColumn(); + _sheet.setActiveCellRow(row); + _sheet.setActiveCellCol(col); + } } diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java index a512f52f16..a5f9445844 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java @@ -413,8 +413,6 @@ public final class TestHSSFCell extends BaseTestCell { // cover some deprecated methods and other smaller stuff... assertEquals(wb.getWorkbook(), cell.getBoundWorkbook()); - cell.getCellNum(); - cell.setCellNum((short)0); try { cell.getCachedFormulaResultType(); -- 2.39.5