whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cd254f2f1e
commit
2fab3547be
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user