delete public void destroy

This commit is contained in:
Yuriy Lytvynchuk 2023-01-23 12:30:48 +02:00
parent b7dd23157d
commit 892cc1a907
3 changed files with 2 additions and 6 deletions

View File

@ -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);
} }

View File

@ -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();
} }

View File

@ -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();
} }