Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
  • Loading branch information
EtienneLt committed Dec 10, 2024
1 parent d482163 commit 1217fdd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1217fdd

Please sign in to comment.