Author: xor
Date: 2009-03-04 08:15:02 +0000 (Wed, 04 Mar 2009)
New Revision: 25885

Modified:
   trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
Log:
Add FIXME.

Modified: trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2009-03-04 
08:09:18 UTC (rev 25884)
+++ trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2009-03-04 
08:15:02 UTC (rev 25885)
@@ -330,6 +330,16 @@
                        return defaultValue;
                }
        }
+       
+       public boolean getBooleanParam(String name, boolean defaultValue)
+       {
+               if(!this.isPartSet(name)) {
+                       return defaultValue;
+               }
+               
+               
+               return false;
+       }
 
        // TODO: add similar methods for long, boolean etc.
 
@@ -588,7 +598,7 @@
                 Logger.error(this, "Caught IOE:" + ioe.getMessage());
                } finally {
                        Closer.close(dis);
-                       Closer.close(is);
+                       Closer.close(is); /* FIXME: Why are we doing this? 
dis.close() should close the InputStream. */
                }
                
                return new byte[0];

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

Reply via email to