IDEMPIERE-454 Easy import / fix problem with java7
This commit is contained in:
parent
5a5712fb71
commit
31c808cf7c
|
@ -219,8 +219,11 @@ public class GridTabCSVImporter implements IGridTabImporter
|
||||||
sortedtTabMapIndexes = new TreeMap<GridTab,Integer>(bvc);
|
sortedtTabMapIndexes = new TreeMap<GridTab,Integer>(bvc);
|
||||||
sortedtTabMapIndexes.putAll(tabMapIndexes);
|
sortedtTabMapIndexes.putAll(tabMapIndexes);
|
||||||
}else{
|
}else{
|
||||||
sortedtTabMapIndexes = new TreeMap<GridTab,Integer>();
|
Map<GridTab,Integer> localMapIndexes = new HashMap<GridTab,Integer>();
|
||||||
sortedtTabMapIndexes.put(gridTab,header.size()-1);
|
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()]);
|
CellProcessor[] processors = readProcArray.toArray(new CellProcessor[readProcArray.size()]);
|
||||||
|
|
Loading…
Reference in New Issue