Author: nextgens
Date: 2006-02-13 16:10:51 +0000 (Mon, 13 Feb 2006)
New Revision: 8036

Modified:
   trunk/freenet/src/freenet/node/fcp/ClientGetMessage.java
   trunk/freenet/src/freenet/node/fcp/ClientPutMessage.java
Log:
unb0rking the build on emu : we get rid of 1.5isms

Modified: trunk/freenet/src/freenet/node/fcp/ClientGetMessage.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ClientGetMessage.java    2006-02-13 
10:57:25 UTC (rev 8035)
+++ trunk/freenet/src/freenet/node/fcp/ClientGetMessage.java    2006-02-13 
16:10:51 UTC (rev 8036)
@@ -51,8 +51,16 @@

        public ClientGetMessage(SimpleFieldSet fs) throws 
MessageInvalidException {
                short defaultPriority;
-               ignoreDS = Boolean.parseBoolean(fs.get("IgnoreDS"));
-               dsOnly = Boolean.parseBoolean(fs.get("DSOnly"));
+               if(fs.get("IgnoreDS").equalsIgnoreCase("true")){
+                       ignoreDS=true;
+               }else{
+                       ignoreDS=false;
+               }
+               if(fs.get("DSOnly").equalsIgnoreCase("true")){
+                       dsOnly=true;
+               }else{
+                       dsOnly=false;
+               }
                identifier = fs.get("Identifier");
                if(identifier == null)
                        throw new 
MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", 
null);

Modified: trunk/freenet/src/freenet/node/fcp/ClientPutMessage.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ClientPutMessage.java    2006-02-13 
10:57:25 UTC (rev 8035)
+++ trunk/freenet/src/freenet/node/fcp/ClientPutMessage.java    2006-02-13 
16:10:51 UTC (rev 8036)
@@ -78,7 +78,11 @@
                                throw new 
MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error 
parsing MaxSize field: "+e.getMessage(), identifier);
                        }
                }
-               getCHKOnly = Boolean.parseBoolean(fs.get("GetCHKOnly"));
+               if(fs.get("GetCHKOnly").equalsIgnoreCase("true")){
+                       getCHKOnly=true;
+               }else{
+                       getCHKOnly=false;
+               }
                String priorityString = fs.get("PriorityClass");
                if(priorityString == null) {
                        // defaults to the one just below fproxy
@@ -115,7 +119,11 @@
                                throw new 
MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error 
parsing DataLength field: "+e.getMessage(), identifier);
                        }
                }
-               dontCompress = Boolean.parseBoolean(fs.get("DontCompress"));
+               if(fs.get("DontCompress").equalsIgnoreCase("true")){
+                       dontCompress=true;
+               }else{
+                       dontCompress=false;
+               }
        }

        public SimpleFieldSet getFieldSet() {


Reply via email to