pre for-each iteration over for index iteration
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751369 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
31efeb44b7
commit
f0f37b58ed
@ -399,9 +399,11 @@ public class XSSFTable extends POIXMLDocumentPart implements Table {
|
||||
final int count = getTableColumns().length;
|
||||
columnMap = new HashMap<String, Integer>(count * 3 / 2);
|
||||
|
||||
for (int i=0; i < count; i++) {
|
||||
String columnName = getTableColumns()[i].getName();
|
||||
int i = 0;
|
||||
for (CTTableColumn column : getTableColumns()) {
|
||||
String columnName = column.getName();
|
||||
columnMap.put(caseInsensitive(columnName), i);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
// Table column names with special characters need a single quote escape
|
||||
|
Loading…
Reference in New Issue
Block a user