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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20070823/22979bda/attachment.pgp>