adelmelle
Sat, 10 May 2008 07:24:23 -0700
Author: adelmelle Date: Sat May 10 07:23:56 2008 New Revision: 655093 URL: http://svn.apache.org/viewvc?rev=655093&view=rev Log: Correction: set default to true... Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java?rev=655093&r1=655092&r2=655093&view=diff ============================================================================== --- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java (original) +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/PropertyCache.java Sat May 10 07:23:56 2008 @@ -268,9 +268,13 @@ * @param c Runtime type of the objects that will be stored in the cache */ public PropertyCache(Class c) { - this.useCache = Boolean.getBoolean("org.apache.fop.fo.properties.use-cache"); - for (int i = SEGMENT_MASK + 1; --i >= 0;) { - segments[i] = new CacheSegment(); + this.useCache = Boolean.valueOf(System.getProperty( + "org.apache.fop.fo.properties.use-cache", "true") + ).booleanValue(); + if (useCache) { + for (int i = SEGMENT_MASK + 1; --i >= 0;) { + segments[i] = new CacheSegment(); + } } this.runtimeType = c; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]