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:
Javen O'Neal 2016-07-04 18:43:45 +00:00
parent 31efeb44b7
commit f0f37b58ed

View File

@ -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