Collections.sort(imports, new Comparator<BoundImport>() {
public int compare(BoundImport o1, BoundImport o2) {
return o1.getOffsetToModuleName() - o2.getOffsetToModuleName();
}
});
IntMap names = new IntMap();
for (int i = 0; i < imports.size(); i++) {
bi = imports.get(i);
int offset = bi.getOffsetToModuleName();
String n = (String) names.get(offset);
if (n == null) {
dr.jumpTo(offset);
n = dr.readUtf();
names.put(offset, n);
}
bi.setModuleName(n);
}
return bidt;
}