Commit e8a655a
committed
SdkComponentDescriptor: Fix equals() and hasCode() methods
We need to also consider the "implType" field when comparing two
instances or calculating the hash code.
This makes the check in SdkComponentFactory that there are two
components with the same version and type actually work and throw the
intended exception.
As we have this situation in unit test, any test that uses
SdkComponentFactory currently fails because of this exception.
This will addressed in the next commit.1 parent 75db941 commit e8a655a
1 file changed
Lines changed: 4 additions & 2 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
0 commit comments