diff options
Diffstat (limited to 'gnu/xml/transform/MessageNode.java')
-rw-r--r-- | gnu/xml/transform/MessageNode.java | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gnu/xml/transform/MessageNode.java b/gnu/xml/transform/MessageNode.java index c79060a06..1df716836 100644 --- a/gnu/xml/transform/MessageNode.java +++ b/gnu/xml/transform/MessageNode.java @@ -15,8 +15,8 @@ General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -02111-1307 USA. +Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and @@ -55,19 +55,23 @@ final class MessageNode final boolean terminate; - MessageNode(TemplateNode children, TemplateNode next, boolean terminate) + MessageNode(boolean terminate) { - super(children, next); this.terminate = terminate; } TemplateNode clone(Stylesheet stylesheet) { - return new MessageNode((children == null) ? null : - children.clone(stylesheet), - (next == null) ? null : - next.clone(stylesheet), - terminate); + TemplateNode ret = new MessageNode(terminate); + if (children != null) + { + ret.children = children.clone(stylesheet); + } + if (next != null) + { + ret.next = next.clone(stylesheet); + } + return ret; } void doApply(Stylesheet stylesheet, QName mode, |