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;
}
/**