Skip to content
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
2 changes: 1 addition & 1 deletion class-overview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void installAndDeploy(final String factory) throws InstallationException,
//
resolver.install(artifact, pom);

// Deploy to a remote reposistory
// Deploy to a remote repository
//
resolver.deploy(artifact, pom, "http://localhost:8081/nexus/content/repositories/snapshots/");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public static void writeFileWithBackup(Path target, FileWriter writer) throws IO

/**
* Utility method to write out file to disk in "atomic" manner, with optional backups (".bak") if needed. This
* ensures that no other thread or process will be able to read not fully written files. Finally, this methos
* ensures that no other thread or process will be able to read not fully written files. Finally, this method
* may create the needed parent directories, if the passed in target parents does not exist.
*
* @param target that is the target file (must be an existing or non-existing file, the path must have parent).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public DependencyNode transformGraph(DependencyNode node, DependencyGraphTransfo

Map<DependencyNode, Object> visited = new IdentityHashMap<>(conflictIds.size());

buildConflitIdDAG(ids, node, id, 0, visited, conflictIds);
buildConflictIdDAG(ids, node, id, 0, visited, conflictIds);

long time2 = System.nanoTime();

Expand All @@ -93,7 +93,7 @@ public DependencyNode transformGraph(DependencyNode node, DependencyGraphTransfo
return node;
}

private void buildConflitIdDAG(
private void buildConflictIdDAG(
Map<Object, ConflictId> ids,
DependencyNode node,
ConflictId id,
Expand All @@ -120,7 +120,7 @@ private void buildConflitIdDAG(
id.add(childId);
}

buildConflitIdDAG(ids, child, childId, depth, visited, conflictIds);
buildConflictIdDAG(ids, child, childId, depth, visited, conflictIds);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private boolean gatherConflictItems(DependencyNode node, State state) throws Rep
// found a leftover loser (likely in a cycle) of an already processed conflict id, tell caller to nuke it
return false;
} else if (state.push(node, conflictId)) {
// found potential parent, no cycle and not visisted before with the same derived scope, so recurse
// found potential parent, no cycle and not visited before with the same derived scope, so recurse
for (Iterator<DependencyNode> it = node.getChildren().iterator(); it.hasNext(); ) {
DependencyNode child = it.next();
if (!gatherConflictItems(child, state)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public final class SimpleResolutionErrorPolicy implements ResolutionErrorPolicy
/**
* Creates a new error policy with the specified behavior for both artifacts and metadata.
*
* @param cacheNotFound {@code true} to enable caching of missing items, {@code false} to disable it.
* @param cacheTransferErrors {@code true} to enable chaching of transfer errors, {@code false} to disable it.
* @param cacheNotFound {@code true} to enable caching of missing items, {@code false} to disable it
* @param cacheTransferErrors {@code true} to enable caching of transfer errors, {@code false} to disable it
*/
public SimpleResolutionErrorPolicy(boolean cacheNotFound, boolean cacheTransferErrors) {
this((cacheNotFound ? CACHE_NOT_FOUND : 0) | (cacheTransferErrors ? CACHE_TRANSFER_ERROR : 0));
Expand Down