Skip to content

Commit

Permalink
Make the isReverseOf() method final
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaturet committed Mar 12, 2024
1 parent f2d7d11 commit b2ee65f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public boolean isEquivalentTo(Edge e) {
/**
* Returns true if this edge is the reverse of another.
*/
public boolean isReverseOf(Edge e) {
public final boolean isReverseOf(Edge e) {
return (this.getFromVertex() == e.getToVertex() && this.getToVertex() == e.getFromVertex());
}

Expand Down

0 comments on commit b2ee65f

Please sign in to comment.