From 8ccff89b922a555a9cb3de17d9ea6e0e2b97beae Mon Sep 17 00:00:00 2001 From: Etienne LESOT Date: Mon, 9 Dec 2024 12:48:42 +0100 Subject: [PATCH] fix type Signed-off-by: Etienne LESOT --- .../powsybl/network/store/model/RegulatingTapChangerType.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network-store-model/src/main/java/com/powsybl/network/store/model/RegulatingTapChangerType.java b/network-store-model/src/main/java/com/powsybl/network/store/model/RegulatingTapChangerType.java index afca220f8..245e326e4 100644 --- a/network-store-model/src/main/java/com/powsybl/network/store/model/RegulatingTapChangerType.java +++ b/network-store-model/src/main/java/com/powsybl/network/store/model/RegulatingTapChangerType.java @@ -24,9 +24,9 @@ public enum RegulatingTapChangerType { public static RegulatingTapChangerType getThreeWindingType(ThreeSides side, RegulatingTapChangerType type) { return switch (type) { - case RATIO_TAP_CHANGER -> - getSideType(side, PHASE_TAP_CHANGER_SIDE_ONE, PHASE_TAP_CHANGER_SIDE_TWO, PHASE_TAP_CHANGER_SIDE_THREE); case PHASE_TAP_CHANGER -> + getSideType(side, PHASE_TAP_CHANGER_SIDE_ONE, PHASE_TAP_CHANGER_SIDE_TWO, PHASE_TAP_CHANGER_SIDE_THREE); + case RATIO_TAP_CHANGER -> getSideType(side, RATIO_TAP_CHANGER_SIDE_ONE, RATIO_TAP_CHANGER_SIDE_TWO, RATIO_TAP_CHANGER_SIDE_THREE); default -> throw new PowsyblException("type to select a three winding tap changer type " + "must be RATIO_TAP_CHANGER or PHASE_TAP_CHANGER");