This is an automated email from the ASF dual-hosted git repository. tv pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
commit 66025009ac8ad27eb2222a210c109d3a8830d4ee Author: Thomas Vandahl <[email protected]> AuthorDate: Mon Feb 9 17:00:47 2026 +0100 Update documentation --- .../jcs4/engine/TestCompositeCacheAttributes.java | 19 +++++++++++++++++++ xdocs/UpgradingFrom3x.xml | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/commons-jcs4-core/src/test/java/org/apache/commons/jcs4/engine/TestCompositeCacheAttributes.java b/commons-jcs4-core/src/test/java/org/apache/commons/jcs4/engine/TestCompositeCacheAttributes.java index e40d9c0a..b40b0b3c 100644 --- a/commons-jcs4-core/src/test/java/org/apache/commons/jcs4/engine/TestCompositeCacheAttributes.java +++ b/commons-jcs4-core/src/test/java/org/apache/commons/jcs4/engine/TestCompositeCacheAttributes.java @@ -1,5 +1,24 @@ package org.apache.commons.jcs4.engine; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + import org.apache.commons.jcs4.engine.behavior.ICompositeCacheAttributes; /** diff --git a/xdocs/UpgradingFrom3x.xml b/xdocs/UpgradingFrom3x.xml index d18d1bf2..fcd43e16 100644 --- a/xdocs/UpgradingFrom3x.xml +++ b/xdocs/UpgradingFrom3x.xml @@ -103,7 +103,7 @@ jcs.default.cacheattributes=org.apache.commons.jcs4.engine.CompositeCacheAttribu Please note that several internals structures are not exported. </p> </subsection> - <subsection name="Changed Configuration Keys"> + <subsection name="Changed Configuration Behavior"> <p> JCS 4.0.0 tries to pull some long-standing configuration inconsistencies straight. The following configuration keys have been renamed or removed: @@ -133,6 +133,11 @@ jcs.default.cacheattributes=org.apache.commons.jcs4.engine.CompositeCacheAttribu for your existing configurations. On the other hand, it makes the configuration much shorter. </p> + <p> + The configuration holder objects (the classes that end in "Attributes") are now + implemented as Java records and - as such - are largely immutable. This makes them much + more robust against side-effects in concurrent environments. + </p> </subsection> </section> </body>
