poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1711864 - /poi/trunk/src/java/org/apache/poi/ss/formula/FormulaShifter.java
Date Sun, 01 Nov 2015 23:54:13 GMT
Author: onealj
Date: Sun Nov  1 23:54:13 2015
New Revision: 1711864

URL: http://svn.apache.org/viewvc?rev=1711864&view=rev
Log:
prepare for bug 58348, make FormulaShifter.ShiftMode enum private

Modified:
    poi/trunk/src/java/org/apache/poi/ss/formula/FormulaShifter.java

Modified: poi/trunk/src/java/org/apache/poi/ss/formula/FormulaShifter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/FormulaShifter.java?rev=1711864&r1=1711863&r2=1711864&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/FormulaShifter.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/FormulaShifter.java Sun Nov  1 23:54:13 2015
@@ -39,9 +39,9 @@ import org.apache.poi.ss.formula.ptg.Ref
  */
 public final class FormulaShifter {
 
-    static enum ShiftMode {
-        Row,
-        Sheet
+    private static enum ShiftMode {
+        RowMove,
+        SheetMove,
     }
 
     /**
@@ -81,7 +81,7 @@ public final class FormulaShifter {
         _firstMovedIndex = firstMovedIndex;
         _lastMovedIndex = lastMovedIndex;
         _amountToMove = amountToMove;
-        _mode = ShiftMode.Row;
+        _mode = ShiftMode.RowMove;
 
         _srcSheetIndex = _dstSheetIndex = -1;
     }
@@ -97,7 +97,7 @@ public final class FormulaShifter {
 
         _srcSheetIndex = srcSheetIndex;
         _dstSheetIndex = dstSheetIndex;
-        _mode = ShiftMode.Sheet;
+        _mode = ShiftMode.SheetMove;
     }
 
     public static FormulaShifter createForRowShift(int externSheetIndex, String sheetName,
int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove) {
@@ -139,9 +139,9 @@ public final class FormulaShifter {
 
     private Ptg adjustPtg(Ptg ptg, int currentExternSheetIx) {
         switch(_mode){
-            case Row:
+            case RowMove:
                 return adjustPtgDueToRowMove(ptg, currentExternSheetIx);
-            case Sheet:
+            case SheetMove:
                 return adjustPtgDueToSheetMove(ptg);
             default:
                 throw new IllegalStateException("Unsupported shift mode: " + _mode);



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


Mime
View raw message