Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Add missing accessPublicRead property in hashCode and equals methods (#2631)

Koenb36492b94bbe
diff --git a/model/src/main/java/org/openremote/model/gateway/GatewayAssetSyncRule.java b/model/src/main/java/org/openremote/model/gateway/GatewayAssetSyncRule.java
index 574fc23a4..9284ada57 100644
--- a/model/src/main/java/org/openremote/model/gateway/GatewayAssetSyncRule.java
+++ b/model/src/main/java/org/openremote/model/gateway/GatewayAssetSyncRule.java
@@ -76,11 +76,14 @@ public class GatewayAssetSyncRule {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GatewayAssetSyncRule that = (GatewayAssetSyncRule) o;
- return Objects.equals(excludeAttributes, that.excludeAttributes) && Objects.equals(excludeAttributeMeta, that.excludeAttributeMeta) && Objects.equals(addAttributeMeta, that.addAttributeMeta);
+ return Objects.equals(accessPublicRead, that.accessPublicRead)
+ && Objects.equals(excludeAttributes, that.excludeAttributes)
+ && Objects.equals(excludeAttributeMeta, that.excludeAttributeMeta)
+ && Objects.equals(addAttributeMeta, that.addAttributeMeta);
}
@Override
public int hashCode() {
- return Objects.hash(excludeAttributes, excludeAttributeMeta, addAttributeMeta);
+ return Objects.hash(accessPublicRead, excludeAttributes, excludeAttributeMeta, addAttributeMeta);
}
}