Browse Source

delete public void destroy

pull/7974/head
Yuriy Lytvynchuk 4 years ago
parent
commit
892cc1a907
  1. 4
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/filter/TbAbstractTypeSwitchNode.java
  2. 2
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/filter/TbAssetTypeSwitchNode.java
  3. 2
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/filter/TbDeviceTypeSwitchNode.java

4
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/filter/TbAbstractTypeSwitchNode.java

@ -40,10 +40,6 @@ public abstract class TbAbstractTypeSwitchNode implements TbNode {
ctx.tellNext(msg, getRelationType(ctx, msg.getOriginator()));
}
@Override
public void destroy() {
}
protected abstract String getRelationType(TbContext ctx, EntityId originator);
}

2
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/filter/TbAssetTypeSwitchNode.java

@ -44,7 +44,7 @@ public class TbAssetTypeSwitchNode extends TbAbstractTypeSwitchNode {
}
AssetProfile assetProfile = ctx.getAssetProfileCache().get(ctx.getTenantId(), (AssetId) originator);
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();
}

2
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/filter/TbDeviceTypeSwitchNode.java

@ -44,7 +44,7 @@ public class TbDeviceTypeSwitchNode extends TbAbstractTypeSwitchNode {
}
DeviceProfile deviceProfile = ctx.getDeviceProfileCache().get(ctx.getTenantId(), (DeviceId) originator);
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();
}

Loading…
Cancel
Save