From b855bb879090cddbd5f2f01ec02253ad1b0f13e6 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Sun, 21 Mar 2010 16:36:16 +0100 Subject: [PATCH] Yaaic: cache field lookup --- src/org/yaaic/Yaaic.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/yaaic/Yaaic.java b/src/org/yaaic/Yaaic.java index 990d920..90f32a3 100644 --- a/src/org/yaaic/Yaaic.java +++ b/src/org/yaaic/Yaaic.java @@ -22,6 +22,7 @@ package org.yaaic; import java.util.ArrayList; import java.util.HashMap; +import java.util.Set; import org.yaaic.model.Server; @@ -115,7 +116,8 @@ public class Yaaic { ArrayList serverList = new ArrayList(); - for (int key : servers.keySet()) { + Set mKeys = servers.keySet(); + for (int key : mKeys) { serverList.add(servers.get(key)); }