delete public void destroy
This commit is contained in:
parent
b7dd23157d
commit
892cc1a907
@ -40,10 +40,6 @@ public abstract class TbAbstractTypeSwitchNode implements TbNode {
|
|||||||
ctx.tellNext(msg, getRelationType(ctx, msg.getOriginator()));
|
ctx.tellNext(msg, getRelationType(ctx, msg.getOriginator()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void destroy() {
|
|
||||||
}
|
|
||||||
|
|
||||||
protected abstract String getRelationType(TbContext ctx, EntityId originator);
|
protected abstract String getRelationType(TbContext ctx, EntityId originator);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,7 +44,7 @@ public class TbAssetTypeSwitchNode extends TbAbstractTypeSwitchNode {
|
|||||||
}
|
}
|
||||||
AssetProfile assetProfile = ctx.getAssetProfileCache().get(ctx.getTenantId(), (AssetId) originator);
|
AssetProfile assetProfile = ctx.getAssetProfileCache().get(ctx.getTenantId(), (AssetId) originator);
|
||||||
if (assetProfile == null) {
|
if (assetProfile == null) {
|
||||||
throw new RuntimeException("Asset profile with entity id: " + originator.getId() + " doesn't not found!");
|
throw new RuntimeException("Asset profile with entity id: " + originator.getId() + " wasn't found!");
|
||||||
}
|
}
|
||||||
return assetProfile.getName();
|
return assetProfile.getName();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,7 +44,7 @@ public class TbDeviceTypeSwitchNode extends TbAbstractTypeSwitchNode {
|
|||||||
}
|
}
|
||||||
DeviceProfile deviceProfile = ctx.getDeviceProfileCache().get(ctx.getTenantId(), (DeviceId) originator);
|
DeviceProfile deviceProfile = ctx.getDeviceProfileCache().get(ctx.getTenantId(), (DeviceId) originator);
|
||||||
if (deviceProfile == null) {
|
if (deviceProfile == null) {
|
||||||
throw new RuntimeException("Device profile with entity id: " + originator.getId() + " doesn't not found!");
|
throw new RuntimeException("Device profile with entity id: " + originator.getId() + " wasn't found!");
|
||||||
}
|
}
|
||||||
return deviceProfile.getName();
|
return deviceProfile.getName();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user