Author: nextgens
Date: 2007-04-24 22:27:41 +0000 (Tue, 24 Apr 2007)
New Revision: 12931
Modified:
trunk/freenet/src/freenet/clients/http/TranslationToadlet.java
Log:
Spare some memory declaring the default translation static final
Modified: trunk/freenet/src/freenet/clients/http/TranslationToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/TranslationToadlet.java
2007-04-24 22:25:02 UTC (rev 12930)
+++ trunk/freenet/src/freenet/clients/http/TranslationToadlet.java
2007-04-24 22:27:41 UTC (rev 12931)
@@ -25,7 +25,7 @@
public class TranslationToadlet extends Toadlet {
public static final String TOADLET_URL = "/translation/";
private final NodeClientCore core;
- private final SimpleFieldSet defaultTranslation =
L10n.getDefaultLanguageTranslation();
+ private static final SimpleFieldSet DEFAULT_TRANSLATION =
L10n.getDefaultLanguageTranslation();
TranslationToadlet(HighLevelSimpleClient client, NodeClientCore core) {
super(client);
@@ -161,7 +161,7 @@
SimpleFieldSet sfs = L10n.getCurrentLanguageTranslation();
if(sfs != null) {
- KeyIterator it = defaultTranslation.keyIterator("");
+ KeyIterator it = DEFAULT_TRANSLATION.keyIterator("");
while(it.hasNext()) {
String key = it.nextKey();