Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Javadoc and explain
  • Loading branch information
cstamas committed Dec 10, 2025
commit 381f6446d507b70b9fc5cdb21ab5c61a4b2b9834
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,18 @@ private List<ArtifactResult> resolve(
}
}

/**
* This is the method that checks local artifact result if no RRF being used. Unlike with RRF, where only
* {@link LocalArtifactResult#isAvailable()} is checked, here we perform multiple checks:
* <ul>
* <li>if {@link LocalArtifactResult#isAvailable()} is {@code true}, return {@code true}</li>
* <li>if {@link LocalArtifactResult#getRepository()} is instance of {@link LocalRepository}, return {@code true}</li>
* <li>if {@link LocalArtifactResult#getRepository()} is {@code null} and request had zero remote repositories set, return {@code true}</li>
* </ul>
* Note: the third check is interfering with RRF, as RRF may make list of remote repositories empty, that was
* originally non-empty, by eliminating remote repositories to consider.
* Hence, we leave use this method ONLY if RRF is inactive.
*/
private boolean isLocallyInstalled(LocalArtifactResult lar, VersionResult vr) {
if (lar.isAvailable()) {
return true;
Expand Down
Loading