Skip to content

armgit / core

Public Imported from GitHub
0

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

Fixed compiler warnings

Christian Bauera59f73e7866b
diff --git a/client/src/main/java/org/openremote/app/client/assets/asset/AssetViewActivity.java b/client/src/main/java/org/openremote/app/client/assets/asset/AssetViewActivity.java
index 76455172c..4e146710b 100644
--- a/client/src/main/java/org/openremote/app/client/assets/asset/AssetViewActivity.java
+++ b/client/src/main/java/org/openremote/app/client/assets/asset/AssetViewActivity.java
@@ -187,7 +187,7 @@ public class AssetViewActivity
if (subscribe) {
environment.getEventService().subscribe(
AttributeEvent.class,
- new AssetEvent.AssetIdFilter(asset.getId())
+ new AssetEvent.AssetIdFilter<>(asset.getId())
);
} else {
environment.getEventService().unsubscribe(
@@ -242,9 +242,7 @@ public class AssetViewActivity
} else {
AgentLink.getAgentLink(assetAttribute)
.filter(agentLink -> agentLink.equals(event.getProtocolConfiguration()))
- .ifPresent(agentLink -> {
- attributeView.setStatus(event.getConnectionStatus());
- });
+ .ifPresent(agentLink -> attributeView.setStatus(event.getConnectionStatus()));
}
}
diff --git a/client/src/main/java/org/openremote/app/client/map/MapActivity.java b/client/src/main/java/org/openremote/app/client/map/MapActivity.java
index b42a3fbcd..dc3f328a5 100644
--- a/client/src/main/java/org/openremote/app/client/map/MapActivity.java
+++ b/client/src/main/java/org/openremote/app/client/map/MapActivity.java
@@ -181,7 +181,7 @@ public class MapActivity extends AssetBrowsingActivity<MapPlace> implements MapV
showAssetInfoItems();
environment.getEventService().subscribe(
AttributeEvent.class,
- new AssetEvent.AssetIdFilter(asset.getId())
+ new AssetEvent.AssetIdFilter<>(asset.getId())
);
}
});