whitespace

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2015-11-24 05:51:54 +00:00
parent cd254f2f1e
commit 2fab3547be
1 changed files with 207 additions and 222 deletions

View File

@ -60,7 +60,6 @@ public class XSSFTable extends POIXMLDocumentPart {
public XSSFTable() {
super();
ctTable = CTTable.Factory.newInstance();
}
public XSSFTable(PackagePart part, PackageRelationship rel)
@ -132,11 +131,8 @@ public class XSSFTable extends POIXMLDocumentPart {
*/
@SuppressWarnings("deprecation")
public String getCommonXpath() {
if (commonXPath == null) {
String[] commonTokens = {};
for (CTTableColumn column :ctTable.getTableColumns().getTableColumnArray()) {
if (column.getXmlColumnPr()!=null) {
String xpath = column.getXmlColumnPr().getXpath();
@ -154,21 +150,15 @@ public class XSSFTable extends POIXMLDocumentPart {
commonTokens = subCommonTokens.toArray(container);
break;
}
}
}
}
}
commonXPath = "";
for (int i = 1 ; i< commonTokens.length;i++) {
commonXPath +="/"+commonTokens[i];
}
}
@ -237,7 +227,6 @@ public class XSSFTable extends POIXMLDocumentPart {
*
*/
public CellReference getStartCellReference() {
if (startCellReference==null) {
String ref = ctTable.getRef();
if (ref != null) {
@ -255,9 +244,7 @@ public class XSSFTable extends POIXMLDocumentPart {
*
*/
public CellReference getEndCellReference() {
if (endCellReference==null) {
String ref = ctTable.getRef();
String[] boundaries = ref.split(":");
String from = boundaries[1];
@ -272,8 +259,6 @@ public class XSSFTable extends POIXMLDocumentPart {
*
*/
public int getRowCount() {
CellReference from = getStartCellReference();
CellReference to = getEndCellReference();