From 1d5f29f42583df6129d00c2f93af0040c2b9a6da Mon Sep 17 00:00:00 2001 From: lisrte Date: Fri, 3 Nov 2023 15:27:25 +0100 Subject: [PATCH] Fix code smells Signed-off-by: lisrte --- .../com/powsybl/dynawaltz/models/EquipmentBlackBoxModel.java | 2 +- .../java/com/powsybl/dynawaltz/models/hvdc/AbstractHvdc.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/EquipmentBlackBoxModel.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/EquipmentBlackBoxModel.java index 0e38d9f62..b8cd05588 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/EquipmentBlackBoxModel.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/EquipmentBlackBoxModel.java @@ -15,5 +15,5 @@ public interface EquipmentBlackBoxModel extends BlackBoxModel { String getStaticId(); - Identifiable getEquipment(); + Identifiable> getEquipment(); } diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/AbstractHvdc.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/AbstractHvdc.java index db28b7cff..2f32e5ef2 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/AbstractHvdc.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/models/hvdc/AbstractHvdc.java @@ -63,7 +63,7 @@ protected final VarConnection getSimpleVarConnectionWithBus(EquipmentConnectionP return new VarConnection(TERMINAL_PREFIX + side.getSideNumber(), connected.getTerminalVarName(side)); } - public List> getConnectedStations() { + public List>> getConnectedStations() { return List.of(equipment.getConverterStation1(), equipment.getConverterStation2()); } }