From a89cbf7c9aa5c9b8b1d1f98cceb17a9848a58a4f Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Wed, 27 Nov 2002 03:25:18 +0000 Subject: [PATCH] Modified clear() to return the event. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195636 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/xml/XMLEvent.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/apache/fop/xml/XMLEvent.java b/src/org/apache/fop/xml/XMLEvent.java index ec662cac9..0f795ec53 100644 --- a/src/org/apache/fop/xml/XMLEvent.java +++ b/src/org/apache/fop/xml/XMLEvent.java @@ -116,14 +116,16 @@ public class XMLEvent { /** * Clear the fields of this event. Provided for pool operations. * The namespaces field is not cleared. + * @return the cleared event. */ - public void clear() { + public XMLEvent clear() { type = NOEVENT; chars = null; uriIndex = 0; localName = null; qName = null; attributes = null; + return this; } public int getType() { return type; } -- 2.39.5