Author: j16sdiz
Date: 2009-02-13 14:41:08 +0000 (Fri, 13 Feb 2009)
New Revision: 25612

Modified:
   trunk/freenet/src/freenet/clients/http/FirstTimeWizardToadlet.java
Log:
suppress some warning

Modified: trunk/freenet/src/freenet/clients/http/FirstTimeWizardToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/FirstTimeWizardToadlet.java  
2009-02-13 14:07:03 UTC (rev 25611)
+++ trunk/freenet/src/freenet/clients/http/FirstTimeWizardToadlet.java  
2009-02-13 14:41:08 UTC (rev 25612)
@@ -205,9 +205,10 @@
                        HTMLNode bandwidthForm = 
ctx.addFormChild(bandwidthInfoboxContent, ".", "bwForm");
                        HTMLNode result = bandwidthForm.addChild("select", 
"name", "bw");
                        
-                       Option sizeOption = 
config.get("node").getOption("outputBandwidthLimit");
+                       @SuppressWarnings("unchecked")
+                       Option<Integer> sizeOption = (Option<Integer>) 
config.get("node").getOption("outputBandwidthLimit");
                        if(!sizeOption.isDefault()) {
-                               int current = (Integer)sizeOption.getValue();
+                               int current = sizeOption.getValue();
                                result.addChild("option", new String[] { 
"value", "selected" }, new String[] { SizeUtil.formatSize(current), "on" }, 
l10n("currentSpeed")+" "+SizeUtil.formatSize(current)+"/s");
                        }
 
@@ -245,9 +246,10 @@
                        HTMLNode bandwidthForm = 
ctx.addFormChild(bandwidthInfoboxContent, ".", "dsForm");
                        HTMLNode result = bandwidthForm.addChild("select", 
"name", "ds");
 
-                       Option sizeOption = 
config.get("node").getOption("storeSize");
+                       @SuppressWarnings("unchecked")
+                       Option<Long> sizeOption = (Option<Long>) 
config.get("node").getOption("storeSize");
                        if(!sizeOption.isDefault()) {
-                               long current = (Long)sizeOption.getValue();
+                               long current = sizeOption.getValue();
                                result.addChild("option", new String[] { 
"value", "selected" }, new String[] { SizeUtil.formatSize(current), "on" }, 
l10n("currentPrefix")+" "+SizeUtil.formatSize(current));
                        }
                        result.addChild("option", "value", "512M", "512MiB");

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to