Lines 300-307
Link Here
|
300 |
* added/removed, file is modified, editor tabs are switched, etc). |
300 |
* added/removed, file is modified, editor tabs are switched, etc). |
301 |
*/ |
301 |
*/ |
302 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
302 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
303 |
value="DMI_COLLECTION_OF_URLS" |
303 |
value="DMI_COLLECTION_OF_URLS", |
304 |
/*,justification="URLs have never host part"*/) |
304 |
justification="URLs have never host part") |
305 |
public void addIndexingJob( |
305 |
public void addIndexingJob( |
306 |
@NonNull final URL rootUrl, |
306 |
@NonNull final URL rootUrl, |
307 |
@NullAllowed Collection<? extends URL> fileUrls, |
307 |
@NullAllowed Collection<? extends URL> fileUrls, |
Lines 525-532
Link Here
|
525 |
// ----------------------------------------------------------------------- |
525 |
// ----------------------------------------------------------------------- |
526 |
|
526 |
|
527 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
527 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
528 |
value="DMI_COLLECTION_OF_URLS" |
528 |
value="DMI_COLLECTION_OF_URLS", |
529 |
/*,justification="URLs have never host part. Already verified by PathRegistry"*/) |
529 |
justification="URLs have never host part. Already verified by PathRegistry") |
530 |
@Override |
530 |
@Override |
531 |
public void pathsChanged(PathRegistryEvent event) { |
531 |
public void pathsChanged(PathRegistryEvent event) { |
532 |
assert event != null; |
532 |
assert event != null; |
Lines 1222-1245
Link Here
|
1222 |
/* test */ volatile static Source unitTestActiveSource; |
1222 |
/* test */ volatile static Source unitTestActiveSource; |
1223 |
|
1223 |
|
1224 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1224 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1225 |
value="DMI_COLLECTION_OF_URLS" |
1225 |
value="DMI_COLLECTION_OF_URLS", |
1226 |
/*,justification="URLs have never host part"*/) |
1226 |
justification="URLs have never host part") |
1227 |
private final Map<URL, List<URL>>scannedRoots2Dependencies = Collections.synchronizedMap(new TreeMap<URL, List<URL>>(new LexicographicComparator(true))); |
1227 |
private final Map<URL, List<URL>>scannedRoots2Dependencies = Collections.synchronizedMap(new TreeMap<URL, List<URL>>(new LexicographicComparator(true))); |
1228 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1228 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1229 |
value="DMI_COLLECTION_OF_URLS" |
1229 |
value="DMI_COLLECTION_OF_URLS", |
1230 |
/*,justification="URLs have never host part"*/) |
1230 |
justification="URLs have never host part") |
1231 |
private final Map<URL, List<URL>>scannedBinaries2InvDependencies = Collections.synchronizedMap(new HashMap<URL,List<URL>>()); |
1231 |
private final Map<URL, List<URL>>scannedBinaries2InvDependencies = Collections.synchronizedMap(new HashMap<URL,List<URL>>()); |
1232 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1232 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1233 |
value="DMI_COLLECTION_OF_URLS" |
1233 |
value="DMI_COLLECTION_OF_URLS", |
1234 |
/*,justification="URLs have never host part"*/) |
1234 |
justification="URLs have never host part") |
1235 |
private final Map<URL, List<URL>>scannedRoots2Peers = Collections.synchronizedMap(new TreeMap<URL, List<URL>>(new LexicographicComparator(true))); |
1235 |
private final Map<URL, List<URL>>scannedRoots2Peers = Collections.synchronizedMap(new TreeMap<URL, List<URL>>(new LexicographicComparator(true))); |
1236 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1236 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1237 |
value="DMI_COLLECTION_OF_URLS" |
1237 |
value="DMI_COLLECTION_OF_URLS", |
1238 |
/*,justification="URLs have never host part"*/) |
1238 |
justification="URLs have never host part") |
1239 |
private final Set<URL>scannedUnknown = Collections.synchronizedSet(new HashSet<URL>()); |
1239 |
private final Set<URL>scannedUnknown = Collections.synchronizedSet(new HashSet<URL>()); |
1240 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1240 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1241 |
value="DMI_COLLECTION_OF_URLS" |
1241 |
value="DMI_COLLECTION_OF_URLS", |
1242 |
/*,justification="URLs have never host part"*/) |
1242 |
justification="URLs have never host part") |
1243 |
private final Set<URL>sourcesForBinaryRoots = Collections.synchronizedSet(new HashSet<URL>()); |
1243 |
private final Set<URL>sourcesForBinaryRoots = Collections.synchronizedSet(new HashSet<URL>()); |
1244 |
|
1244 |
|
1245 |
private volatile State state = State.CREATED; |
1245 |
private volatile State state = State.CREATED; |
Lines 1621-1628
Link Here
|
1621 |
} |
1621 |
} |
1622 |
|
1622 |
|
1623 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1623 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1624 |
value="DMI_BLOCKING_METHODS_ON_URL" |
1624 |
value="DMI_BLOCKING_METHODS_ON_URL", |
1625 |
/*,justification="URLs have never host part"*/) |
1625 |
justification="URLs have never host part") |
1626 |
private static ClassPath.Entry getClassPathEntry (final FileObject root) { |
1626 |
private static ClassPath.Entry getClassPathEntry (final FileObject root) { |
1627 |
try { |
1627 |
try { |
1628 |
if (root != null) { |
1628 |
if (root != null) { |
Lines 1677-1684
Link Here
|
1677 |
} |
1677 |
} |
1678 |
|
1678 |
|
1679 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1679 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1680 |
value={"DMI_COLLECTION_OF_URLS","DMI_BLOCKING_METHODS_ON_URL"} |
1680 |
value={"DMI_COLLECTION_OF_URLS","DMI_BLOCKING_METHODS_ON_URL"}, |
1681 |
/*,justification="URLs have never host part"*/) |
1681 |
justification="URLs have never host part") |
1682 |
private static boolean findDependencies( |
1682 |
private static boolean findDependencies( |
1683 |
final URL rootURL, |
1683 |
final URL rootURL, |
1684 |
final DependenciesContext ctx, |
1684 |
final DependenciesContext ctx, |
Lines 1973-1980
Link Here
|
1973 |
} |
1973 |
} |
1974 |
|
1974 |
|
1975 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1975 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1976 |
value="DMI_COLLECTION_OF_URLS" |
1976 |
value="DMI_COLLECTION_OF_URLS", |
1977 |
/*,justification="URLs have never host part"*/) |
1977 |
justification="URLs have never host part") |
1978 |
private static void printMap(Map<URL, List<URL>> deps, Level level) { |
1978 |
private static void printMap(Map<URL, List<URL>> deps, Level level) { |
1979 |
Set<URL> sortedRoots = new TreeSet<URL>(C); |
1979 |
Set<URL> sortedRoots = new TreeSet<URL>(C); |
1980 |
sortedRoots.addAll(deps.keySet()); |
1980 |
sortedRoots.addAll(deps.keySet()); |
Lines 1987-1994
Link Here
|
1987 |
} |
1987 |
} |
1988 |
|
1988 |
|
1989 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1989 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
1990 |
value="DMI_COLLECTION_OF_URLS" |
1990 |
value="DMI_COLLECTION_OF_URLS", |
1991 |
/*,justification="URLs have never host part"*/) |
1991 |
justification="URLs have never host part") |
1992 |
private static StringBuilder printMap(Map<URL, List<URL>> deps, StringBuilder sb) { |
1992 |
private static StringBuilder printMap(Map<URL, List<URL>> deps, StringBuilder sb) { |
1993 |
Set<URL> sortedRoots = new TreeSet<URL>(C); |
1993 |
Set<URL> sortedRoots = new TreeSet<URL>(C); |
1994 |
sortedRoots.addAll(deps.keySet()); |
1994 |
sortedRoots.addAll(deps.keySet()); |
Lines 3344-3351
Link Here
|
3344 |
private final Map<URL, List<URL>> scannedRoots2Depencencies; |
3344 |
private final Map<URL, List<URL>> scannedRoots2Depencencies; |
3345 |
|
3345 |
|
3346 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3346 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3347 |
value="DMI_COLLECTION_OF_URLS" |
3347 |
value="DMI_COLLECTION_OF_URLS", |
3348 |
/*,justification="URLs have never host part"*/) |
3348 |
justification="URLs have never host part") |
3349 |
public FileListWork ( |
3349 |
public FileListWork ( |
3350 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
3350 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
3351 |
URL root, boolean followUpJob, |
3351 |
URL root, boolean followUpJob, |
Lines 3365-3372
Link Here
|
3365 |
|
3365 |
|
3366 |
@SuppressWarnings("LeakingThisInConstructor") |
3366 |
@SuppressWarnings("LeakingThisInConstructor") |
3367 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3367 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3368 |
value="DMI_COLLECTION_OF_URLS" |
3368 |
value="DMI_COLLECTION_OF_URLS", |
3369 |
/*,justification="URLs have never host part"*/) |
3369 |
justification="URLs have never host part") |
3370 |
public FileListWork ( |
3370 |
public FileListWork ( |
3371 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
3371 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
3372 |
URL root, |
3372 |
URL root, |
Lines 3427-3434
Link Here
|
3427 |
|
3427 |
|
3428 |
@Override |
3428 |
@Override |
3429 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3429 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3430 |
value="DMI_BLOCKING_METHODS_ON_URL" |
3430 |
value="DMI_BLOCKING_METHODS_ON_URL", |
3431 |
/*,justification="URLs have never host part"*/) |
3431 |
justification="URLs have never host part") |
3432 |
public boolean absorb(Work newWork) { |
3432 |
public boolean absorb(Work newWork) { |
3433 |
if (newWork instanceof FileListWork) { |
3433 |
if (newWork instanceof FileListWork) { |
3434 |
FileListWork nflw = (FileListWork) newWork; |
3434 |
FileListWork nflw = (FileListWork) newWork; |
Lines 3487-3494
Link Here
|
3487 |
|
3487 |
|
3488 |
@Override |
3488 |
@Override |
3489 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3489 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3490 |
value="DMI_BLOCKING_METHODS_ON_URL" |
3490 |
value="DMI_BLOCKING_METHODS_ON_URL", |
3491 |
/*,justification="URLs have never host part"*/) |
3491 |
justification="URLs have never host part") |
3492 |
public boolean absorb(Work newWork) { |
3492 |
public boolean absorb(Work newWork) { |
3493 |
if (newWork instanceof BinaryWork) { |
3493 |
if (newWork instanceof BinaryWork) { |
3494 |
return root.equals(((BinaryWork) newWork).root); |
3494 |
return root.equals(((BinaryWork) newWork).root); |
Lines 3562-3569
Link Here
|
3562 |
|
3562 |
|
3563 |
@Override |
3563 |
@Override |
3564 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3564 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3565 |
value="DMI_BLOCKING_METHODS_ON_URL" |
3565 |
value="DMI_BLOCKING_METHODS_ON_URL", |
3566 |
/*,justification="URLs have never host part"*/) |
3566 |
justification="URLs have never host part") |
3567 |
public boolean absorb(Work newWork) { |
3567 |
public boolean absorb(Work newWork) { |
3568 |
if (newWork instanceof DeleteWork) { |
3568 |
if (newWork instanceof DeleteWork) { |
3569 |
DeleteWork ndw = (DeleteWork) newWork; |
3569 |
DeleteWork ndw = (DeleteWork) newWork; |
Lines 3587-3594
Link Here
|
3587 |
private final Set<URL> sourcesForBinaryRoots; |
3587 |
private final Set<URL> sourcesForBinaryRoots; |
3588 |
|
3588 |
|
3589 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3589 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3590 |
value="DMI_COLLECTION_OF_URLS" |
3590 |
value="DMI_COLLECTION_OF_URLS", |
3591 |
/*,justification="URLs have never host part"*/) |
3591 |
justification="URLs have never host part") |
3592 |
public RefreshCifIndices( |
3592 |
public RefreshCifIndices( |
3593 |
Collection<? extends IndexerCache.IndexerInfo<CustomIndexerFactory>> cifInfos, |
3593 |
Collection<? extends IndexerCache.IndexerInfo<CustomIndexerFactory>> cifInfos, |
3594 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
3594 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
Lines 3623-3630
Link Here
|
3623 |
|
3623 |
|
3624 |
@Override |
3624 |
@Override |
3625 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3625 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3626 |
value="DMI_COLLECTION_OF_URLS" |
3626 |
value="DMI_COLLECTION_OF_URLS", |
3627 |
/*,justification="URLs have never host part"*/) |
3627 |
justification="URLs have never host part") |
3628 |
protected boolean getDone() { |
3628 |
protected boolean getDone() { |
3629 |
switchProgressToDeterminate(scannedRoots2Dependencies.size()); |
3629 |
switchProgressToDeterminate(scannedRoots2Dependencies.size()); |
3630 |
for(URL root : scannedRoots2Dependencies.keySet()) { |
3630 |
for(URL root : scannedRoots2Dependencies.keySet()) { |
Lines 3758-3765
Link Here
|
3758 |
private final Set<URL> sourcesForBinaryRoots; |
3758 |
private final Set<URL> sourcesForBinaryRoots; |
3759 |
|
3759 |
|
3760 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3760 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3761 |
value="DMI_COLLECTION_OF_URLS" |
3761 |
value="DMI_COLLECTION_OF_URLS", |
3762 |
/*,justification="URLs have never host part"*/) |
3762 |
justification="URLs have never host part") |
3763 |
public RefreshEifIndices( |
3763 |
public RefreshEifIndices( |
3764 |
Collection<? extends IndexerCache.IndexerInfo<EmbeddingIndexerFactory>> eifInfos, |
3764 |
Collection<? extends IndexerCache.IndexerInfo<EmbeddingIndexerFactory>> eifInfos, |
3765 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
3765 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
Lines 3794-3801
Link Here
|
3794 |
|
3794 |
|
3795 |
@Override |
3795 |
@Override |
3796 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3796 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3797 |
value="DMI_COLLECTION_OF_URLS" |
3797 |
value="DMI_COLLECTION_OF_URLS", |
3798 |
/*,justification="URLs have never host part"*/) |
3798 |
justification="URLs have never host part") |
3799 |
protected boolean getDone() { |
3799 |
protected boolean getDone() { |
3800 |
switchProgressToDeterminate(scannedRoots2Dependencies.size()); |
3800 |
switchProgressToDeterminate(scannedRoots2Dependencies.size()); |
3801 |
for(URL root : scannedRoots2Dependencies.keySet()) { |
3801 |
for(URL root : scannedRoots2Dependencies.keySet()) { |
Lines 3920-3927
Link Here
|
3920 |
private Map<URL, Set<FileObject>> checkTimestampFiles; |
3920 |
private Map<URL, Set<FileObject>> checkTimestampFiles; |
3921 |
|
3921 |
|
3922 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3922 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3923 |
value="DMI_COLLECTION_OF_URLS" |
3923 |
value="DMI_COLLECTION_OF_URLS", |
3924 |
/*,justification="URLs have never host part"*/) |
3924 |
justification="URLs have never host part") |
3925 |
public RefreshWork( |
3925 |
public RefreshWork( |
3926 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
3926 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
3927 |
Map<URL, List<URL>> scannedBinaries2InvDependencies, |
3927 |
Map<URL, List<URL>> scannedBinaries2InvDependencies, |
Lines 3954-3961
Link Here
|
3954 |
} |
3954 |
} |
3955 |
|
3955 |
|
3956 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3956 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
3957 |
value="DMI_COLLECTION_OF_URLS" |
3957 |
value="DMI_COLLECTION_OF_URLS", |
3958 |
/*,justification="URLs have never host part"*/) |
3958 |
justification="URLs have never host part") |
3959 |
protected @Override boolean getDone() { |
3959 |
protected @Override boolean getDone() { |
3960 |
if (depCtx == null) { |
3960 |
if (depCtx == null) { |
3961 |
depCtx = new DependenciesContext(scannedRoots2Dependencies, scannedBinaries2InvDependencies, scannedRoots2Peers, sourcesForBinaryRoots, false); |
3961 |
depCtx = new DependenciesContext(scannedRoots2Dependencies, scannedBinaries2InvDependencies, scannedRoots2Peers, sourcesForBinaryRoots, false); |
Lines 4160-4167
Link Here
|
4160 |
} |
4160 |
} |
4161 |
|
4161 |
|
4162 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4162 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4163 |
value="DMI_COLLECTION_OF_URLS" |
4163 |
value="DMI_COLLECTION_OF_URLS", |
4164 |
/*,justification="URLs have never host part"*/) |
4164 |
justification="URLs have never host part") |
4165 |
private boolean scanRootFiles(Map<URL, Set<FileObject>> files) { |
4165 |
private boolean scanRootFiles(Map<URL, Set<FileObject>> files) { |
4166 |
if (files != null && files.size() > 0) { // #174887 |
4166 |
if (files != null && files.size() > 0) { // #174887 |
4167 |
for(Iterator<Map.Entry<URL, Set<FileObject>>> it = files.entrySet().iterator(); it.hasNext(); ) { |
4167 |
for(Iterator<Map.Entry<URL, Set<FileObject>>> it = files.entrySet().iterator(); it.hasNext(); ) { |
Lines 4199-4206
Link Here
|
4199 |
private Level previousLevel; |
4199 |
private Level previousLevel; |
4200 |
|
4200 |
|
4201 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4201 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4202 |
value="DMI_COLLECTION_OF_URLS" |
4202 |
value="DMI_COLLECTION_OF_URLS", |
4203 |
/*,justification="URLs have never host part"*/) |
4203 |
justification="URLs have never host part") |
4204 |
public RootsWork( |
4204 |
public RootsWork( |
4205 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
4205 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
4206 |
Map<URL,List<URL>> scannedBinaries2InvDependencies, |
4206 |
Map<URL,List<URL>> scannedBinaries2InvDependencies, |
Lines 4274-4281
Link Here
|
4274 |
|
4274 |
|
4275 |
@Override |
4275 |
@Override |
4276 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4276 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4277 |
value="DMI_COLLECTION_OF_URLS" |
4277 |
value="DMI_COLLECTION_OF_URLS", |
4278 |
/*,justification="URLs have never host part"*/) |
4278 |
justification="URLs have never host part") |
4279 |
public boolean getDone() { |
4279 |
public boolean getDone() { |
4280 |
TEST_LOGGER.log(Level.FINEST, "RootsWork-started"); //NOI18N |
4280 |
TEST_LOGGER.log(Level.FINEST, "RootsWork-started"); //NOI18N |
4281 |
if (getCancelRequest().isRaised()) { |
4281 |
if (getCancelRequest().isRaised()) { |
Lines 4518-4525
Link Here
|
4518 |
} |
4518 |
} |
4519 |
|
4519 |
|
4520 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4520 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4521 |
value="DMI_COLLECTION_OF_URLS" |
4521 |
value="DMI_COLLECTION_OF_URLS", |
4522 |
/*,justification="URLs have never host part"*/) |
4522 |
justification="URLs have never host part") |
4523 |
private void notifyRootsRemoved (final Set<URL> binaries, final Set<URL> sources) { |
4523 |
private void notifyRootsRemoved (final Set<URL> binaries, final Set<URL> sources) { |
4524 |
if (!binaries.isEmpty()) { |
4524 |
if (!binaries.isEmpty()) { |
4525 |
final Collection<? extends BinaryIndexerFactory> binFactories = MimeLookup.getLookup(MimePath.EMPTY).lookupAll(BinaryIndexerFactory.class); |
4525 |
final Collection<? extends BinaryIndexerFactory> binFactories = MimeLookup.getLookup(MimePath.EMPTY).lookupAll(BinaryIndexerFactory.class); |
Lines 4682-4689
Link Here
|
4682 |
} |
4682 |
} |
4683 |
|
4683 |
|
4684 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4684 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
4685 |
value="DMI_COLLECTION_OF_URLS" |
4685 |
value="DMI_COLLECTION_OF_URLS", |
4686 |
/*,justification="URLs have never host part"*/) |
4686 |
justification="URLs have never host part") |
4687 |
protected final boolean scanSources(DependenciesContext ctx, SourceIndexers indexers, Map<URL, List<URL>> preregisterIn) { |
4687 |
protected final boolean scanSources(DependenciesContext ctx, SourceIndexers indexers, Map<URL, List<URL>> preregisterIn) { |
4688 |
assert ctx != null; |
4688 |
assert ctx != null; |
4689 |
long scannedRootsCnt = 0; |
4689 |
long scannedRootsCnt = 0; |
Lines 5057-5064
Link Here
|
5057 |
private final boolean waitForProjects; |
5057 |
private final boolean waitForProjects; |
5058 |
|
5058 |
|
5059 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5059 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5060 |
value="DMI_COLLECTION_OF_URLS" |
5060 |
value="DMI_COLLECTION_OF_URLS", |
5061 |
/*,justification="URLs have never host part"*/) |
5061 |
justification="URLs have never host part") |
5062 |
public InitialRootsWork( |
5062 |
public InitialRootsWork( |
5063 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
5063 |
Map<URL, List<URL>> scannedRoots2Depencencies, |
5064 |
Map<URL,List<URL>> scannedBinaries2InvDependencies, |
5064 |
Map<URL,List<URL>> scannedBinaries2InvDependencies, |
Lines 5477-5484
Link Here
|
5477 |
} |
5477 |
} |
5478 |
} |
5478 |
} |
5479 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5479 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5480 |
value="DMI_COLLECTION_OF_URLS" |
5480 |
value="DMI_COLLECTION_OF_URLS", |
5481 |
/*,justification="URLs have never host part"*/) |
5481 |
justification="URLs have never host part") |
5482 |
private Work getWork () { |
5482 |
private Work getWork () { |
5483 |
synchronized (todo) { |
5483 |
synchronized (todo) { |
5484 |
Work w; |
5484 |
Work w; |
Lines 5581-5588
Link Here
|
5581 |
private final boolean useInitialState; |
5581 |
private final boolean useInitialState; |
5582 |
|
5582 |
|
5583 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5583 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5584 |
value="DMI_COLLECTION_OF_URLS" |
5584 |
value="DMI_COLLECTION_OF_URLS", |
5585 |
/*,justification="URLs have never host part"*/) |
5585 |
justification="URLs have never host part") |
5586 |
public DependenciesContext ( |
5586 |
public DependenciesContext ( |
5587 |
final Map<URL, List<URL>> scannedRoots2Deps, |
5587 |
final Map<URL, List<URL>> scannedRoots2Deps, |
5588 |
final Map<URL,List<URL>> scannedBinaries2InvDependencies, |
5588 |
final Map<URL,List<URL>> scannedBinaries2InvDependencies, |
Lines 5718-5741
Link Here
|
5718 |
|
5718 |
|
5719 |
@Override |
5719 |
@Override |
5720 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5720 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5721 |
value="DMI_COLLECTION_OF_URLS" |
5721 |
value="DMI_COLLECTION_OF_URLS", |
5722 |
/*,justification="URLs have never host part"*/) |
5722 |
justification="URLs have never host part") |
5723 |
public synchronized Map<URL, List<URL>> getRootDependencies() { |
5723 |
public synchronized Map<URL, List<URL>> getRootDependencies() { |
5724 |
return roots2Dependencies; |
5724 |
return roots2Dependencies; |
5725 |
} |
5725 |
} |
5726 |
|
5726 |
|
5727 |
@Override |
5727 |
@Override |
5728 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5728 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5729 |
value="DMI_COLLECTION_OF_URLS" |
5729 |
value="DMI_COLLECTION_OF_URLS", |
5730 |
/*,justification="URLs have never host part"*/) |
5730 |
justification="URLs have never host part") |
5731 |
public synchronized Map<URL, List<URL>> getBinaryRootDependencies() { |
5731 |
public synchronized Map<URL, List<URL>> getBinaryRootDependencies() { |
5732 |
return binRoots2Dependencies; |
5732 |
return binRoots2Dependencies; |
5733 |
} |
5733 |
} |
5734 |
|
5734 |
|
5735 |
@Override |
5735 |
@Override |
5736 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5736 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5737 |
value="DMI_COLLECTION_OF_URLS" |
5737 |
value="DMI_COLLECTION_OF_URLS", |
5738 |
/*,justification="URLs have never host part"*/) |
5738 |
justification="URLs have never host part") |
5739 |
public Map<URL, List<URL>> getRootPeers() { |
5739 |
public Map<URL, List<URL>> getRootPeers() { |
5740 |
return roots2Peers; |
5740 |
return roots2Peers; |
5741 |
} |
5741 |
} |
Lines 5862-5869
Link Here
|
5862 |
} |
5862 |
} |
5863 |
|
5863 |
|
5864 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5864 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5865 |
value="DMI_COLLECTION_OF_URLS" |
5865 |
value="DMI_COLLECTION_OF_URLS", |
5866 |
/*,justification="URLs have never host part"*/) |
5866 |
justification="URLs have never host part") |
5867 |
public synchronized boolean add( |
5867 |
public synchronized boolean add( |
5868 |
@NonNull final URL root, |
5868 |
@NonNull final URL root, |
5869 |
final boolean sourceRoot, |
5869 |
final boolean sourceRoot, |
Lines 5911-5918
Link Here
|
5911 |
} |
5911 |
} |
5912 |
|
5912 |
|
5913 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5913 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
5914 |
value="DMI_COLLECTION_OF_URLS" |
5914 |
value="DMI_COLLECTION_OF_URLS", |
5915 |
/*,justification="URLs have never host part"*/) |
5915 |
justification="URLs have never host part") |
5916 |
public synchronized void remove(final Iterable<? extends URL> roots, final boolean sourceRoot) { |
5916 |
public synchronized void remove(final Iterable<? extends URL> roots, final boolean sourceRoot) { |
5917 |
for (URL root : roots) { |
5917 |
for (URL root : roots) { |
5918 |
if (sourceRoot) { |
5918 |
if (sourceRoot) { |
Lines 6077-6108
Link Here
|
6077 |
|
6077 |
|
6078 |
//Unit test method |
6078 |
//Unit test method |
6079 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
6079 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
6080 |
value="DMI_COLLECTION_OF_URLS" |
6080 |
value="DMI_COLLECTION_OF_URLS", |
6081 |
/*,justification="URLs have never host part"*/) |
6081 |
justification="URLs have never host part") |
6082 |
/* test */ Set<URL> getScannedBinaries () { |
6082 |
/* test */ Set<URL> getScannedBinaries () { |
6083 |
return this.scannedBinaries2InvDependencies.keySet(); |
6083 |
return this.scannedBinaries2InvDependencies.keySet(); |
6084 |
} |
6084 |
} |
6085 |
|
6085 |
|
6086 |
//Unit test method |
6086 |
//Unit test method |
6087 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
6087 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
6088 |
value="DMI_COLLECTION_OF_URLS" |
6088 |
value="DMI_COLLECTION_OF_URLS", |
6089 |
/*,justification="URLs have never host part"*/) |
6089 |
justification="URLs have never host part") |
6090 |
/* test */ Set<URL> getScannedSources () { |
6090 |
/* test */ Set<URL> getScannedSources () { |
6091 |
return this.scannedRoots2Dependencies.keySet(); |
6091 |
return this.scannedRoots2Dependencies.keySet(); |
6092 |
} |
6092 |
} |
6093 |
|
6093 |
|
6094 |
//Unit test method |
6094 |
//Unit test method |
6095 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
6095 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
6096 |
value="DMI_COLLECTION_OF_URLS" |
6096 |
value="DMI_COLLECTION_OF_URLS", |
6097 |
/*,justification="URLs have never host part"*/) |
6097 |
justification="URLs have never host part") |
6098 |
/* test */ Map<URL,List<URL>> getScannedRoots2Dependencies() { |
6098 |
/* test */ Map<URL,List<URL>> getScannedRoots2Dependencies() { |
6099 |
return this.scannedRoots2Dependencies; |
6099 |
return this.scannedRoots2Dependencies; |
6100 |
} |
6100 |
} |
6101 |
|
6101 |
|
6102 |
//Unit test method |
6102 |
//Unit test method |
6103 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
6103 |
@org.netbeans.api.annotations.common.SuppressWarnings( |
6104 |
value="DMI_COLLECTION_OF_URLS" |
6104 |
value="DMI_COLLECTION_OF_URLS", |
6105 |
/*,justification="URLs have never host part"*/) |
6105 |
justification="URLs have never host part") |
6106 |
/* test */ Set<URL> getScannedUnknowns () { |
6106 |
/* test */ Set<URL> getScannedUnknowns () { |
6107 |
return this.scannedUnknown; |
6107 |
return this.scannedUnknown; |
6108 |
} |
6108 |
} |