Fix StackOverflowError during hash code computation
I7659ae66b provided wrong implementation of hashCode(). Objects.hash() calls Arrays.hashCode(values) on provided values, which in turn calls hashCode() on its parameters, which in turn leads to endless recursion, and in the end to StackOverflowError error. Change-Id: I709239cbd27592765319b15c13044ab9aad738c0
This commit is contained in:
@@ -195,7 +195,7 @@ class LineMapper {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(this);
|
||||
return Objects.hash(line, aligned);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user