Skip to content
Permalink
Browse files

Fixed compiler warnings

  • Loading branch information...
Christian Bauer
Christian Bauer committed Jun 4, 2019
1 parent cd0f183 commit a59f73e7866b204c8e90a6bcbd0f3db4109e6dc8
@@ -187,7 +187,7 @@ protected void subscribeLiveUpdates(boolean subscribe) {
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 @@ protected void onAgentStatusEvent(AgentStatusEvent event) {
} else {
AgentLink.getAgentLink(assetAttribute)
.filter(agentLink -> agentLink.equals(event.getProtocolConfiguration()))
.ifPresent(agentLink -> {
attributeView.setStatus(event.getConnectionStatus());
});
.ifPresent(agentLink -> attributeView.setStatus(event.getConnectionStatus()));
}

}
@@ -181,7 +181,7 @@ public void onMapReady() {
showAssetInfoItems();
environment.getEventService().subscribe(
AttributeEvent.class,
new AssetEvent.AssetIdFilter(asset.getId())
new AssetEvent.AssetIdFilter<>(asset.getId())
);
}
});

0 comments on commit a59f73e

Please sign in to comment.
You can’t perform that action at this time.