From cb2d608b355d33683b0ce4d8bb0ae816d5605980 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Sun, 15 Feb 2004 03:45:52 +0000 Subject: [PATCH] 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 --- .../fop/fo/pagination/PageSequenceMaster.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- 2.39.5