aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2015-11-01 23:54:13 +0000
committerJaven O'Neal <onealj@apache.org>2015-11-01 23:54:13 +0000
commitffdaf6ded866a2a32f64a4feddfa50da38bc7012 (patch)
treedadd5c39579232a0a2497c979eba25c1202db9a1 /src
parent64b5c3884e6565460e8fab8c34ffbc58cc28448a (diff)
downloadpoi-ffdaf6ded866a2a32f64a4feddfa50da38bc7012.tar.gz
poi-ffdaf6ded866a2a32f64a4feddfa50da38bc7012.zip
prepare for bug 58348, make FormulaShifter.ShiftMode enum private
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711864 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/poi/ss/formula/FormulaShifter.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/java/org/apache/poi/ss/formula/FormulaShifter.java b/src/java/org/apache/poi/ss/formula/FormulaShifter.java
index 2c1e5101fc..ec194b55a4 100644
--- a/src/java/org/apache/poi/ss/formula/FormulaShifter.java
+++ b/src/java/org/apache/poi/ss/formula/FormulaShifter.java
@@ -39,9 +39,9 @@ import org.apache.poi.ss.formula.ptg.RefPtgBase;
*/
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);