From 6217667b7ab8e00f75a9c1b96cfa68b6d45b18fd Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Fri, 2 Jan 2004 05:56:32 +0000 Subject: [PATCH] Temporary BitSets changed from final and nullified at the end of initialization. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197092 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/FObjectSets.java | 39 ++++++++++++++------- 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/src/java/org/apache/fop/fo/FObjectSets.java b/src/java/org/apache/fop/fo/FObjectSets.java index 9ddfb9d88..e5b80b7ac 100644 --- a/src/java/org/apache/fop/fo/FObjectSets.java +++ b/src/java/org/apache/fop/fo/FObjectSets.java @@ -70,8 +70,9 @@ public class FObjectSets { private static final String revision = "$Revision$"; /** The set of FOs comprising the block entity. - * See 6.14 Formatting Object Content. */ - private static final BitSet block; + * See 6.14 Formatting Object Content. + * Nullified when initialization complete. */ + private static BitSet block; /** The publicly accessible block entity set. * See 6.14 Formatting Object Content. */ public static final ROBitSet blockEntity; @@ -86,8 +87,9 @@ public class FObjectSets { } /** The set of FOs comprising the inline entity. - * See 6.14 Formatting Object Content. */ - private static final BitSet inline; + * See 6.14 Formatting Object Content. + * Nullified when initialization complete. */ + private static BitSet inline; /** The publicly accessible inline entity set. * See 6.14 Formatting Object Content. */ @@ -112,8 +114,9 @@ public class FObjectSets { /** The set of FOs available wherever %block; is allowed * including within descendents of out-of-line FOs. - * See 6.14 Formatting Object Content. */ - private static final BitSet outOfLineBlock; + * See 6.14 Formatting Object Content. + * Nullified when initialization complete. */ + private static BitSet outOfLineBlock; /** The publicly accessible set of FOs available wherever * %block; is allowed, including within descendents from @@ -128,8 +131,9 @@ public class FObjectSets { /** The set of FOs available wherever #PCDATA|%block;|%inline; is allowed * including within descendents of out-of-line FOs. - * See 6.14 Formatting Object Content. */ - private static final BitSet outOfLinePcdataBlockInline; + * See 6.14 Formatting Object Content. + * Nullified when initialization complete. */ + private static BitSet outOfLinePcdataBlockInline; /** The publicly accessible set of FOs available wherever * #PCDATA|%block;|%inline; is allowed, including within descendents from @@ -151,8 +155,9 @@ public class FObjectSets { /** * The set of FOs available wherever #PCDATA|%block;|%inline; is allowed * except within descendents of out-of-line FOs. - * See 6.14 Formatting Object Content. */ - private static final BitSet normalPcdataBlockInline; + * See 6.14 Formatting Object Content. + * Nullified when initialization complete. */ + private static BitSet normalPcdataBlockInline; /** The publicly accessible set of FOs available wherever * #PCDATA|%block;|%inline; is allowed except within descendents of @@ -169,8 +174,9 @@ public class FObjectSets { /** * The set of FOs available wherever #PCDATA|%inline; is allowed * except within descendents of out-of-line FOs. - * See 6.14 Formatting Object Content. */ - private static final BitSet normalPcdataInline; + * See 6.14 Formatting Object Content. + * Nullified when initialization complete. */ + private static BitSet normalPcdataInline; /** The publicly accessible set of FOs available wherever * #PCDATA|%inline; is allowed except within descendents of @@ -184,6 +190,15 @@ public class FObjectSets { //normalPcdataInline.set(FObjectNames.FOOTNOTE); normalPcdataInlineSet = new ROBitSet(normalPcdataInline); } + + static { + block = null; + inline = null; + outOfLineBlock = null; + outOfLinePcdataBlockInline = null; + normalPcdataBlockInline = null; + normalPcdataInline = null; + } private FObjectSets() {} -- 2.39.5