mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
there's no need to use <? extends URL, because URL is final
GitOrigin-RevId: 462fbdea7c0676b34d88e28571ea8771d3553779
This commit is contained in:
committed by
intellij-monorepo-bot
parent
400edee56a
commit
01f2bf419b
@@ -43,7 +43,7 @@ public class ClassPath {
|
||||
private final AtomicInteger myLastLoaderProcessed = new AtomicInteger();
|
||||
private final Map<URL, Loader> myLoadersMap = new HashMap<URL, Loader>();
|
||||
private final ClasspathCache myCache = new ClasspathCache();
|
||||
private final Set<? extends URL> myURLsWithProtectionDomain;
|
||||
private final Set<URL> myURLsWithProtectionDomain;
|
||||
|
||||
final boolean myCanLockJars; // true implies that the .jar file will not be modified in the lifetime of the JarLoader
|
||||
private final boolean myCanUseCache;
|
||||
@@ -57,7 +57,7 @@ public class ClassPath {
|
||||
private final boolean myLogJarAccess;
|
||||
private final LinkedHashSet<String> myJarAccessLog = new LinkedHashSet<String>();
|
||||
|
||||
public ClassPath(List<? extends URL> urls,
|
||||
public ClassPath(List<URL> urls,
|
||||
boolean canLockJars,
|
||||
boolean canUseCache,
|
||||
boolean acceptUnescapedUrls,
|
||||
@@ -67,7 +67,7 @@ public class ClassPath {
|
||||
@Nullable UrlClassLoader.CachingCondition cachingCondition,
|
||||
boolean logErrorOnMissingJar,
|
||||
boolean lazyClassloadingCaches,
|
||||
@NotNull Set<? extends URL> urlsWithProtectionDomain,
|
||||
@NotNull Set<URL> urlsWithProtectionDomain,
|
||||
boolean logJarAccess) {
|
||||
myLazyClassloadingCaches = lazyClassloadingCaches;
|
||||
myCanLockJars = canLockJars;
|
||||
@@ -91,7 +91,7 @@ public class ClassPath {
|
||||
push(Collections.singletonList(url));
|
||||
}
|
||||
|
||||
private void push(List<? extends URL> urls) {
|
||||
private void push(List<URL> urls) {
|
||||
if (!urls.isEmpty()) {
|
||||
synchronized (myUrls) {
|
||||
for (int i = urls.size() - 1; i >= 0; i--) {
|
||||
|
||||
@@ -101,8 +101,8 @@ public class UrlClassLoader extends ClassLoader {
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private List<? extends URL> myURLs = ContainerUtilRt.emptyList();
|
||||
private Set<? extends URL> myURLsWithProtectionDomain = new HashSet<URL>();
|
||||
private List<URL> myURLs = ContainerUtilRt.emptyList();
|
||||
private Set<URL> myURLsWithProtectionDomain = new HashSet<URL>();
|
||||
private ClassLoader myParent;
|
||||
private boolean myLockJars;
|
||||
private boolean myUseCache;
|
||||
@@ -119,7 +119,7 @@ public class UrlClassLoader extends ClassLoader {
|
||||
Builder() { }
|
||||
|
||||
@NotNull
|
||||
public Builder urls(@NotNull List<? extends URL> urls) { myURLs = urls; return this; }
|
||||
public Builder urls(@NotNull List<URL> urls) { myURLs = urls; return this; }
|
||||
@NotNull
|
||||
public Builder urls(@NotNull URL... urls) { myURLs = Arrays.asList(urls); return this; }
|
||||
@NotNull
|
||||
@@ -129,7 +129,7 @@ public class UrlClassLoader extends ClassLoader {
|
||||
* @param urls List of URLs that are signed by Sun/Oracle and their signatures must be verified.
|
||||
*/
|
||||
@NotNull
|
||||
Builder urlsWithProtectionDomain(@NotNull Set<? extends URL> urls) { myURLsWithProtectionDomain = urls; return this; }
|
||||
Builder urlsWithProtectionDomain(@NotNull Set<URL> urls) { myURLsWithProtectionDomain = urls; return this; }
|
||||
|
||||
/**
|
||||
* @see #urlsWithProtectionDomain(Set)
|
||||
|
||||
Reference in New Issue
Block a user