This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch MNG-8750 in repository https://gitbox.apache.org/repos/asf/maven.git
commit 1b93394a0a85de80103e777f1d0a9a74d27b2f66 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Sun May 25 06:48:48 2025 -0400 [MNG-8750] Delete unused interface --- .../maven/api/services/model/ModelCache.java | 57 ---------------------- 1 file changed, 57 deletions(-) diff --git a/impl/maven-impl/src/main/java/org/apache/maven/api/services/model/ModelCache.java b/impl/maven-impl/src/main/java/org/apache/maven/api/services/model/ModelCache.java deleted file mode 100644 index aa4abc5b2d..0000000000 --- a/impl/maven-impl/src/main/java/org/apache/maven/api/services/model/ModelCache.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 - * - * http://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. - */ -package org.apache.maven.api.services.model; - -import java.util.List; -import java.util.function.Supplier; - -import org.apache.maven.api.RemoteRepository; -import org.apache.maven.api.annotations.Experimental; -import org.apache.maven.api.annotations.ThreadSafe; -import org.apache.maven.api.services.Source; - -/** - * Caches auxiliary data used during model building like already processed raw/effective models. The data in the cache - * is meant for exclusive consumption by the model builder and is opaque to the cache implementation. The cache key is - * formed by a combination of group id, artifact id, version and tag, or by the pom path on the filesystem and tag. - * The tag allows for further classification of the associated data on the sole discretion of the model builder. - * The cache is expected to be valid through the lifetime of the session, so the model builder is not allowed to - * store data which may change during the session, especially effective models which may be different if the - * user properties or activate profiles change between two invocations of the model builder. - * The cache implementation is expected to be thread-safe. - * - * @since 4.0.0 - */ -@Experimental -@ThreadSafe -public interface ModelCache { - - <T> T computeIfAbsent( - List<RemoteRepository> repositories, - String groupId, - String artifactId, - String version, - String classifier, - String tag, - Supplier<T> data); - - <T> T computeIfAbsent(Source path, String tag, Supplier<T> data); - - void clear(); -}