Merge "Implement missing hashCode method in CommentRange"

This commit is contained in:
Shawn Pearce 2013-08-23 05:46:13 +00:00 committed by Gerrit Code Review
commit 7fe140e744

View File

@ -82,6 +82,15 @@ public class CommentRange {
return false;
}
@Override
public int hashCode() {
int h = startLine;
h = h * 31 + startCharacter;
h = h * 31 + endLine;
h = h * 31 + endCharacter;
return h;
}
@Override
public String toString() {
return "Range[startLine=" + startLine + ", startCharacter=" + startCharacter