IDEMPIERE-454 Easy import / fix problem with java7

This commit is contained in:
Carlos Ruiz 2013-03-30 12:24:50 -05:00
parent 5a5712fb71
commit 31c808cf7c
1 changed files with 5 additions and 2 deletions

View File

@ -219,8 +219,11 @@ public class GridTabCSVImporter implements IGridTabImporter
sortedtTabMapIndexes = new TreeMap<GridTab,Integer>(bvc);
sortedtTabMapIndexes.putAll(tabMapIndexes);
}else{
sortedtTabMapIndexes = new TreeMap<GridTab,Integer>();
sortedtTabMapIndexes.put(gridTab,header.size()-1);
Map<GridTab,Integer> localMapIndexes = new HashMap<GridTab,Integer>();
localMapIndexes.put(gridTab, header.size()-1);
ValueComparator bvc = new ValueComparator(localMapIndexes);
sortedtTabMapIndexes = new TreeMap<GridTab,Integer>(bvc);
sortedtTabMapIndexes.putAll(localMapIndexes);
}
CellProcessor[] processors = readProcArray.toArray(new CellProcessor[readProcArray.size()]);