Skip to content

Commit

Permalink
Adjust method name to make more sense: singular, not plural
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMartinez committed Jun 3, 2016
1 parent 06ffcf3 commit e2fc220
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public interface DirectedAcyclicGraph<C> {

public void remapEdges(C outdated, C updated);

public void testForDependencies(C from, C to);
public void testForDependency(C from, C to);

public void forget(List<C> changes);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public final void remapEdges(C outdated, C updated) {
});
}

public final void testForDependencies(C from, C to) {
public final void testForDependency(C from, C to) {
if (firstDependsOnSecond.test(from, to)) {
addEdgeFromTo(from, to);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public final void updateChanges(C pushedChange) {
getUndoChanges().replaceAll(outdatedUndo -> {
C updatedUndo = graph.getUndoUpdater().apply(pushedChange, outdatedUndo);

graph.testForDependencies(pushedChange, updatedUndo);
graph.testForDependency(pushedChange, updatedUndo);

if (outdatedUndo.equals(updatedUndo)) {
return outdatedUndo;
Expand Down

0 comments on commit e2fc220

Please sign in to comment.