Skip to content

Commit 65348d6

Browse files
committed
Fix warnings in o.e.e.p2.updatesite
Generification and deprecated usages.
1 parent 3af8373 commit 65348d6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/SiteXMLAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2008, 2020 Code 9 and others.
2+
* Copyright (c) 2008, 2024 Code 9 and others.
33
*
44
* This
55
* program and the accompanying materials are made available under the terms of

bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepositoryFactory.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2008, 2017 IBM Corporation and others.
2+
* Copyright (c) 2008, 2024 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -82,7 +82,7 @@ private static boolean isURL(URI location) {
8282

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

8888
public IArtifactRepository loadRepository(URI location, IProgressMonitor monitor) {
@@ -110,7 +110,7 @@ public void initializeRepository(IArtifactRepository repository, URI location, I
110110
repository.setProperty(PROP_SITE_CHECKSUM, updateSite.getChecksum());
111111
if (updateSite.getSite().getMirrorsURI() != null)
112112
repository.setProperty(IRepository.PROP_MIRRORS_URL, updateSite.getSite().getMirrorsURI());
113-
repository.removeAll();
113+
repository.removeAll(new NullProgressMonitor());
114114
generateArtifactDescriptors(updateSite, repository, monitor);
115115
}
116116

@@ -151,6 +151,6 @@ private void generateArtifactDescriptors(UpdateSite updateSite, IArtifactReposit
151151
}
152152
}
153153
IArtifactDescriptor[] descriptors = allSiteArtifacts.toArray(new IArtifactDescriptor[allSiteArtifacts.size()]);
154-
repository.addDescriptors(descriptors);
154+
repository.addDescriptors(descriptors, monitor);
155155
}
156156
}

0 commit comments

Comments
 (0)