Skip to content

Commit 6930e8a

Browse files
Added a fix to AbstractClaim to ensure that equality takes the class into account.
1 parent 1fbeaef commit 6930e8a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
junit_version = '5.3.1'
1515

1616
onixlabs_group = 'io.onixlabs'
17-
onixlabs_corda_core_release_version = '2.1.0'
17+
onixlabs_corda_core_release_version = '2.1.1'
1818

1919
cordapp_platform_version = 10
2020
cordapp_contract_name = 'ONIXLabs Corda Identity Framework Contract'

onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/AbstractClaim.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ abstract class AbstractClaim<T : Any> {
3939
*/
4040
override fun equals(other: Any?): Boolean {
4141
return this === other || (other is AbstractClaim<*>
42+
&& other.javaClass == javaClass
4243
&& other.property == property
4344
&& other.value == value)
4445
}

0 commit comments

Comments
 (0)