Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings in o.e.e.p2.updatesite #566

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2020 Code 9 and others.
* Copyright (c) 2008, 2024 Code 9 and others.
*
* This
* program and the accompanying materials are made available under the terms of
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2017 IBM Corporation and others.
* Copyright (c) 2008, 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 Down Expand Up @@ -82,7 +82,7 @@ private static boolean isURL(URI location) {

private void resetCache(IArtifactRepository repository) {
repository.setProperty(PROP_SITE_CHECKSUM, "0"); //$NON-NLS-1$
repository.removeAll();
repository.removeAll(new NullProgressMonitor());
}

public IArtifactRepository loadRepository(URI location, IProgressMonitor monitor) {
Expand Down Expand Up @@ -110,7 +110,7 @@ public void initializeRepository(IArtifactRepository repository, URI location, I
repository.setProperty(PROP_SITE_CHECKSUM, updateSite.getChecksum());
if (updateSite.getSite().getMirrorsURI() != null)
repository.setProperty(IRepository.PROP_MIRRORS_URL, updateSite.getSite().getMirrorsURI());
repository.removeAll();
repository.removeAll(new NullProgressMonitor());
generateArtifactDescriptors(updateSite, repository, monitor);
}

Expand Down Expand Up @@ -151,6 +151,6 @@ private void generateArtifactDescriptors(UpdateSite updateSite, IArtifactReposit
}
}
IArtifactDescriptor[] descriptors = allSiteArtifacts.toArray(new IArtifactDescriptor[allSiteArtifacts.size()]);
repository.addDescriptors(descriptors);
repository.addDescriptors(descriptors, monitor);
}
}
Loading