Merge "Implement missing hashCode method in CommentRange"
This commit is contained in:
commit
7fe140e744
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user