throws IOException
{
int length = TypeWriter.writeUIntToStream(out, dictionary.size());
- for (final Iterator<Long> i = dictionary.keySet().iterator(); i.hasNext();)
- {
- final Long key = i.next();
- final String value = dictionary.get(key);
+ for (Map.Entry<Long,String> ls : dictionary.entrySet()) {
+ final Long key = ls.getKey();
+ final String value = ls.getValue();
if (codepage == CodePageUtil.CP_UNICODE)
{
}
public static void setupFormulaEvaluator(Map<String,FormulaEvaluator> evaluators) {
Map<String, WorkbookEvaluator> evaluatorsByName = new HashMap<String, WorkbookEvaluator>(evaluators.size());
- for (String wbName : evaluators.keySet()) {
- FormulaEvaluator eval = evaluators.get(wbName);
+ for (Map.Entry<String,FormulaEvaluator> swb : evaluators.entrySet()) {
+ String wbName = swb.getKey();
+ FormulaEvaluator eval = swb.getValue();
if (eval instanceof WorkbookEvaluatorProvider) {
evaluatorsByName.put(wbName, ((WorkbookEvaluatorProvider)eval)._getWorkbookEvaluator());
} else {