Skip to content

Commit

Permalink
Stop using deprecated IArtifactRepository.removeAll()
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Apr 5, 2024
1 parent 6ce1a87 commit e45d3d2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit e45d3d2

Please sign in to comment.