diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2008-05-10 14:23:56 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2008-05-10 14:23:56 +0000 |
commit | dbc0c79b06fc75164dde3bb4bb26991b82fb676e (patch) | |
tree | 7e3ba3e2fb9bd08e89d7d54771ff5273a10f5618 /src | |
parent | 4a70395ffb83b059c54d34ffa4982d0426d385d0 (diff) | |
download | xmlgraphics-fop-dbc0c79b06fc75164dde3bb4bb26991b82fb676e.tar.gz xmlgraphics-fop-dbc0c79b06fc75164dde3bb4bb26991b82fb676e.zip |
Correction: set default to true...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@655093 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fo/properties/PropertyCache.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/properties/PropertyCache.java b/src/java/org/apache/fop/fo/properties/PropertyCache.java index 6fe36e0b8..b5f4f90ba 100644 --- a/src/java/org/apache/fop/fo/properties/PropertyCache.java +++ b/src/java/org/apache/fop/fo/properties/PropertyCache.java @@ -268,9 +268,13 @@ public final class PropertyCache { * @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; } |