From 8c3a9fee631f11dc3d3ed23914eafc8bdd3db0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Fri, 5 Apr 2024 21:50:52 +0300 Subject: [PATCH] Stop using deprecated IArtifactRepository.removeAll() --- .../p2/internal/repository/tools/AbstractApplication.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java index ea2ffdc338..055ddeaa85 100644 --- a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java +++ b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2021 IBM Corporation and others. + * Copyright (c) 2009, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -17,8 +17,7 @@ import java.net.URI; import java.util.*; import java.util.function.Predicate; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.*; import org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository; import org.eclipse.equinox.internal.p2.core.helpers.LogHelper; import org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository; @@ -249,7 +248,7 @@ protected boolean initDestinationRepository(IRepository repository, Repositor } else if (repository instanceof IMetadataRepository metadataRepository && !descriptor.isAppend()) { metadataRepository.removeAll(); } else if (repository instanceof IArtifactRepository artifactRepository && !descriptor.isAppend()) { - artifactRepository.removeAll(); + artifactRepository.removeAll(new NullProgressMonitor()); } return true; }