make private shouldRemoveRow static and final, remove unused import
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711881 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b729d3896c
commit
682f5b3ed4
@ -67,7 +67,6 @@ import org.apache.poi.ss.util.CellReference;
|
|||||||
import org.apache.poi.ss.util.SSCellRange;
|
import org.apache.poi.ss.util.SSCellRange;
|
||||||
import org.apache.poi.ss.util.SheetUtil;
|
import org.apache.poi.ss.util.SheetUtil;
|
||||||
import org.apache.poi.util.Beta;
|
import org.apache.poi.util.Beta;
|
||||||
import org.apache.poi.util.DocumentHelper;
|
|
||||||
import org.apache.poi.util.Internal;
|
import org.apache.poi.util.Internal;
|
||||||
import org.apache.poi.util.POILogFactory;
|
import org.apache.poi.util.POILogFactory;
|
||||||
import org.apache.poi.util.POILogger;
|
import org.apache.poi.util.POILogger;
|
||||||
@ -3056,7 +3055,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
|
|||||||
return sheetPr.isSetPageSetUpPr() ? sheetPr.getPageSetUpPr() : sheetPr.addNewPageSetUpPr();
|
return sheetPr.isSetPageSetUpPr() ? sheetPr.getPageSetUpPr() : sheetPr.addNewPageSetUpPr();
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean shouldRemoveRow(int startRow, int endRow, int n, int rownum) {
|
private static final boolean shouldRemoveRow(int startRow, int endRow, int n, int rownum) {
|
||||||
// is this row in the target-window where the moved rows will land?
|
// is this row in the target-window where the moved rows will land?
|
||||||
if (rownum >= (startRow + n) && rownum <= (endRow + n)) {
|
if (rownum >= (startRow + n) && rownum <= (endRow + n)) {
|
||||||
// only remove it if the current row is not part of the data that is copied
|
// only remove it if the current row is not part of the data that is copied
|
||||||
|
Loading…
Reference in New Issue
Block a user