From: Peter Bernard West Date: Sun, 15 Feb 2004 03:45:52 +0000 (+0000) Subject: Synchronize the clone() method X-Git-Tag: Alt-Design_pre_awt_renderer_import~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb2d608b355d33683b0ce4d8bb0ae816d5605980;p=xmlgraphics-fop.git Synchronize the clone() method git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197354 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java b/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java index 480d3cbb4..cfb5445b1 100644 --- a/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java +++ b/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java @@ -480,6 +480,20 @@ public class PageSequenceMaster { * Returns a new iterator across masters */ public PageMasterIterator() {} + + /** + * Clone the iterator. The purpose of this operation is to allow + * interested methods to attempt layouts of the same flow data using + * different masters, e.g., laying out a 'last' page and 'rest' page + * from the same flow data. + * + * @see java.lang.Object#clone() + */ + protected Object clone() throws CloneNotSupportedException { + synchronized (this) { + return super.clone(); + } + } /** * @return true if any repetitions on any masters remain in the