Skip to content

Commit a17e6aa

Browse files
Update SoftButtonObject.hashCode()
1 parent c6b963b commit a17e6aa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

base/src/main/java/com/smartdevicelink/managers/screen/SoftButtonObject.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,8 @@ public int hashCode() {
331331
int result = 1;
332332
result += ((getName() == null) ? 0 : Integer.rotateLeft(getName().hashCode(), 1));
333333
result += ((getCurrentStateName() == null) ? 0 : Integer.rotateLeft(getCurrentStateName().hashCode(), 2));
334-
result += Integer.rotateLeft(Integer.valueOf(getButtonId()).hashCode(), 3);
335334
for (int i = 0; i < this.states.size(); i++) {
336-
result += ((getStates().get(i) == null) ? 0 : Integer.rotateLeft(getStates().get(i).hashCode(), i + 4));
335+
result += ((getStates().get(i) == null) ? 0 : Integer.rotateLeft(getStates().get(i).hashCode(), i + 3));
337336
}
338337
return result;
339338
}

0 commit comments

Comments
 (0)