poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1717899 - in /poi/trunk/src: java/org/apache/poi/hssf/usermodel/HSSFSheet.java testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java
Date Fri, 04 Dec 2015 06:30:34 GMT
Author: onealj
Date: Fri Dec  4 06:30:34 2015
New Revision: 1717899

URL: http://svn.apache.org/viewvc?rev=1717899&view=rev
Log:
remove deprecated functions (since 2008)

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java?rev=1717899&r1=1717898&r2=1717899&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java Fri Dec  4 06:30:34 2015
@@ -2539,4 +2539,25 @@ public final class HSSFSheet implements
     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);
+    }
 }

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java?rev=1717899&r1=1717898&r2=1717899&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFCell.java Fri Dec  4 06:30:34
2015
@@ -413,8 +413,6 @@ public final class TestHSSFCell extends
 
         // cover some deprecated methods and other smaller stuff...
         assertEquals(wb.getWorkbook(), cell.getBoundWorkbook());
-        cell.getCellNum();
-        cell.setCellNum((short)0);
 
         try {
             cell.getCachedFormulaResultType();



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message