We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8642a76 commit 67b2ef6Copy full SHA for 67b2ef6
1 file changed
base/src/main/java/com/smartdevicelink/managers/screen/SoftButtonObject.java
@@ -319,8 +319,9 @@ public int hashCode() {
319
int result = 1;
320
result += ((getName() == null) ? 0 : Integer.rotateLeft(getName().hashCode(), 1));
321
result += ((getCurrentStateName() == null) ? 0 : Integer.rotateLeft(getCurrentStateName().hashCode(), 2));
322
+ result += Integer.rotateLeft(Integer.valueOf(getButtonId()).hashCode(), 3);
323
for (int i = 0; i < this.states.size(); i++) {
- result += ((getStates().get(i) == null) ? 0 : Integer.rotateLeft(getStates().get(i).hashCode(), i + 2));
324
+ result += ((getStates().get(i) == null) ? 0 : Integer.rotateLeft(getStates().get(i).hashCode(), i + 4));
325
}
326
return result;
327
0 commit comments