Author: toad
Date: 2006-12-09 21:42:05 +0000 (Sat, 09 Dec 2006)
New Revision: 11329

Modified:
   trunk/freenet/src/freenet/config/LongOption.java
Log:
Check the current value before returning the cached one.

Modified: trunk/freenet/src/freenet/config/LongOption.java
===================================================================
--- trunk/freenet/src/freenet/config/LongOption.java    2006-12-09 21:41:24 UTC 
(rev 11328)
+++ trunk/freenet/src/freenet/config/LongOption.java    2006-12-09 21:42:05 UTC 
(rev 11329)
@@ -53,8 +53,11 @@
        }

        public String getValueString() {
-               if(cachedStringValue != null) return cachedStringValue;
-               return Long.toString(getValue());
+               long l = getValue();
+               if(cachedStringValue != null) 
+                       return cachedStringValue;
+               else 
+                       return Long.toString(l);
        }

        public void setInitialValue(String val) throws 
InvalidConfigValueException {


Reply via email to