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 a9cc9861c9c9e6a0b0c4e6c87f5b5d9b40970b12 Author: Thomas Vandahl <[email protected]> AuthorDate: Tue Feb 17 14:50:34 2026 +0100 Remove unused exceptions --- .../access/exception/ConfigurationException.java | 43 ------------------ .../access/exception/InvalidGroupException.java | 46 ------------------- .../access/exception/InvalidHandleException.java | 48 -------------------- .../access/exception/ObjectExistsException.java | 52 ---------------------- .../access/exception/ObjectNotFoundException.java | 50 --------------------- 5 files changed, 239 deletions(-) diff --git a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ConfigurationException.java b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ConfigurationException.java deleted file mode 100644 index 7e3155e1..00000000 --- a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ConfigurationException.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.apache.commons.jcs4.access.exception; - -/* - * 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. - */ - -/** Thrown if there is some severe configuration problem that makes the cache nonfunctional. */ -public class ConfigurationException - extends CacheException -{ - /** Don't change. */ - private static final long serialVersionUID = 6881044536186097055L; - - /** Constructor for the ConfigurationException object */ - public ConfigurationException() - { - } - - /** - * Constructor for the ConfigurationException object. - * - * @param message - */ - public ConfigurationException( final String message ) - { - super( message ); - } -} diff --git a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/InvalidGroupException.java b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/InvalidGroupException.java deleted file mode 100644 index 4e6d080e..00000000 --- a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/InvalidGroupException.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.apache.commons.jcs4.access.exception; - -/* - * 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. - */ - -/** - * InvalidGroupException - */ -public class InvalidGroupException - extends CacheException -{ - /** Don't change. */ - private static final long serialVersionUID = -5219807114008843480L; - - /** Constructor for the InvalidGroupException object */ - public InvalidGroupException() - { - } - - /** - * Constructor for the InvalidGroupException object - * - * @param message - */ - public InvalidGroupException( final String message ) - { - super( message ); - } - -} diff --git a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/InvalidHandleException.java b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/InvalidHandleException.java deleted file mode 100644 index 020847bc..00000000 --- a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/InvalidHandleException.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.apache.commons.jcs4.access.exception; - -/* - * 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. - */ - -/** - * InvalidHandleException is not used. - */ -public class InvalidHandleException - extends CacheException -{ - /** Don't change. */ - private static final long serialVersionUID = -5947822454839845924L; - - /** Constructor for the InvalidHandleException object */ - public InvalidHandleException() - { - // nothing - - } - - /** - * Constructor for the InvalidHandleException object. - * - * @param message - */ - public InvalidHandleException( final String message ) - { - super( message ); - } - -} diff --git a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ObjectExistsException.java b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ObjectExistsException.java deleted file mode 100644 index 7b541946..00000000 --- a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ObjectExistsException.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.apache.commons.jcs4.access.exception; - -/* - * 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. - */ - -/** - * The putSafe method on the JCS convenience class throws this exception if the object is already - * present in the cache. - * <p> - * I'm removing this exception from normal use. - * <p> - * The overhead of throwing exceptions and the cumbersomeness of coding around exceptions warrants - * removal. Exceptions like this don't make sense to throw in the course of normal operations to - * signify a normal and expected condition. Returning null if an object isn't found is sufficient. - */ -public class ObjectExistsException - extends CacheException -{ - /** Don't change. */ - private static final long serialVersionUID = -3779745827993383872L; - - /** Constructor for the ObjectExistsException object */ - public ObjectExistsException() - { - } - - /** - * Constructor for the ObjectExistsException object - * @param message - */ - public ObjectExistsException( final String message ) - { - super( message ); - } - -} diff --git a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ObjectNotFoundException.java b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ObjectNotFoundException.java deleted file mode 100644 index 37210318..00000000 --- a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/access/exception/ObjectNotFoundException.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.apache.commons.jcs4.access.exception; - -/* - * 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. - */ - -/** - * ObjectNotFoundException - * <p> - * TODO see if we can remove this. - * <p> - * This is thrown from the composite cache if you as for the element attributes and the element does - * not exist. - */ -public class ObjectNotFoundException - extends CacheException -{ - /** Don't change. */ - private static final long serialVersionUID = 5684353421076546842L; - - /** Constructor for the ObjectNotFoundException object */ - public ObjectNotFoundException() - { - } - - /** - * Constructor for the ObjectNotFoundException object - * @param message - */ - public ObjectNotFoundException( final String message ) - { - super( message ); - } - -}
