On Saturday 18 August 2007 10:01, you wrote:
> Author: sback
> Date: 2007-08-18 09:01:52 +0000 (Sat, 18 Aug 2007)
> New Revision: 14782
> 
> Modified:
>    trunk/freenet/src/freenet/support/HTMLNode.java
> Log:
> Some code refactoring
> 
> Modified: trunk/freenet/src/freenet/support/HTMLNode.java
> ===================================================================
> --- trunk/freenet/src/freenet/support/HTMLNode.java   2007-08-18 08:27:05 UTC 
(rev 14781)
> +++ trunk/freenet/src/freenet/support/HTMLNode.java   2007-08-18 09:01:52 UTC 
(rev 14782)
> @@ -45,16 +45,11 @@
>                               attributes.put(attributeNames[attributeIndex], 
attributeValues[attributeIndex]);
>                       }
>               }
> -             if (content != null) {
> -                     if (!name.equals("#") && !name.equals("%")) {
> -                             addChild(new HTMLNode("#", content));
> -                             this.content = null;
> -                     } else {
> -                             this.content = content;
> -                     }
> -             } else {
> +             if (content != null && !name.equals("#") && !name.equals("%")) {
> +                     addChild(new HTMLNode("#", content));
>                       this.content = null;
> -             }
> +             } else
> +                     this.content = content;
>       }
>  

Is this equivalent? If content was a local variable, then it isn't, is it?

Attachment: pgpVab7uGPJjO.pgp
Description: PGP signature

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

Reply via email to